From c84dbccf5ce93087e1a1eb2879dd3924030f9dd5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 16 May 2020 15:57:21 +0000 Subject: [PATCH] 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 --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index d9378c4a4..bda3d712a 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -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;