mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
iscsi-scst: reset conn->rx_task in scsi_cmnd_start() for EXTRACHECKS
In scsi_cmnd_start() conn->rx_task is intended to be set only during the call to _stage1_done, but there was no code to reset it. It doesn't actually matter in execution, but it was a little confusing to wonder and try to understand why it wasn't reset. Signed-off-by: David Butterfield <dab21774@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2154,6 +2154,9 @@ static int scsi_cmnd_start(struct iscsi_cmnd *req)
|
||||
req->scst_state = ISCSI_CMD_STATE_RX_CMD;
|
||||
conn->rx_task = current;
|
||||
scst_cmd_init_stage1_done(scst_cmd, SCST_CONTEXT_DIRECT, 0);
|
||||
#ifdef CONFIG_SCST_EXTRACHECKS
|
||||
conn->rx_task = NULL;
|
||||
#endif
|
||||
|
||||
if (req->scst_state != ISCSI_CMD_STATE_RX_CMD)
|
||||
res = req->conn->transport->iscsit_receive_cmnd_data(req);
|
||||
|
||||
Reference in New Issue
Block a user