Made sure that invocation of srpt_pending_cmd_timeout() after

srpt_handle_rdma_comp() finished and before srpt_xmit_response() started works
properly.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-07-25 09:34:20 +00:00
parent 1c64261bec
commit 0925119ad8
+7 -1
View File
@@ -1188,7 +1188,13 @@ static void srpt_abort_scst_cmd(struct srpt_ioctx *ioctx,
WARN_ON(!scst_cmd_aborted(scmnd));
break;
case SRPT_STATE_DATA_IN:
WARN_ON("ERROR: unexpected command state");
/*
* Invocation of srpt_pending_cmd_timeout() after
* srpt_handle_rdma_comp() set the state to SRPT_STATE_DATA_IN
* and before srpt_xmit_response() set the state to
* SRPT_STATE_CMD_RSP_SENT. Ignore the timeout and let
* srpt_handle_xmit_response() proceed.
*/
break;
case SRPT_STATE_NEED_DATA:
/* SCST_DATA_WRITE - RDMA read error or RDMA read timeout. */