From 36d3ac30596ce2619e863e42e57886c6a4b02a05 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 19 Dec 2010 13:29:08 +0000 Subject: [PATCH] ib_srpt: Fixed a bug in the RDMA channel disconnection processing code. (Merged r3142 from the sysfs-tree-changes branch.) git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3143 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 60e7f549d..512adf5e6 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) {