From 8e32148fc1fd645987bc22533fc047e68ae47cf4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 19 Dec 2010 13:33:46 +0000 Subject: [PATCH] ib_srpt: Fixed a bug in the RDMA channel disconnection processing code. (Merged r3143 from the trunk.) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3144 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 98b2cb95f..358cda604 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3038,6 +3038,7 @@ static int srpt_rdy_to_xfer(struct scst_cmd *scmnd) if (ch_state == RDMA_CHANNEL_DISCONNECTING) { TRACE_DBG("cmd with tag %lld: channel disconnecting", scst_cmd_get_tag(scmnd)); + srpt_set_cmd_state(ioctx, SRPT_STATE_DATA_IN); ret = SCST_TGT_RES_FATAL_ERROR; goto out; } else if (ch_state == RDMA_CHANNEL_CONNECTING) {