From 172c211176d3138af814c4836860ec7e45004094 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 23 Oct 2010 14:32:15 +0000 Subject: [PATCH] ib_srpt: Fixed bug in IB send queue overflow handling. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2455 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 064031bab..b192912ee 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3071,6 +3071,7 @@ static int srpt_xmit_response(struct scst_cmd *scmnd) && scst_cmd_get_adjusted_resp_data_len(scmnd)) { ret = srpt_xfer_data(ch, ioctx, scmnd); if (ret != SCST_TGT_RES_SUCCESS) { + srpt_set_cmd_state(ioctx, state); PRINT_ERROR("%s: tag= %llu xfer_data failed", __func__, scst_cmd_get_tag(scmnd)); goto out;