From 0e92843d30871b76a0503e58f4d793620e6c17ab Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 21 Apr 2017 01:17:53 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7142 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 1a5ac0991..e8dfa6457 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -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);