scst: Complain loudly if scst_adjust_sg_get_tail() fails

Apparently certain libiscsi COMPARE AND WRITE tests cause
scst_adjust_sg_get_tail() to fail. Complain if that happens even if
"EXTRACHECKS" are disabled.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8923 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-05-16 15:57:21 +00:00
parent b07dea49d4
commit c84dbccf5c

View File

@@ -6846,7 +6846,7 @@ static void scst_cwr_read_cmd_finished(struct scst_cmd *cmd)
* It must not happen, because get_cdb_info_compare_and_write()
* supposed to ensure that.
*/
EXTRACHECKS_BUG_ON(rc != 0);
WARN_ONCE(rc != 0, "scst_adjust_sg_get_tail() failed: %d\n", rc);
wcmd->tgt_i_data_buf_alloced = 1;