mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-17 03:44:11 -05:00
scsi: qedf: Send cleanup even for RRQ on timeout
Send cleanup even for RRQ on timeout. Link: https://lore.kernel.org/r/20200807110656.19965-5-jhasan@marvell.com Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Javed Hasan <jhasan@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
b09ea43fec
commit
39d0357dd5
@@ -85,13 +85,13 @@ static void qedf_cmd_timeout(struct work_struct *work)
|
||||
*/
|
||||
QEDF_ERR(&(qedf->dbg_ctx), "ELS timeout, xid=0x%x.\n",
|
||||
io_req->xid);
|
||||
qedf_initiate_cleanup(io_req, true);
|
||||
io_req->event = QEDF_IOREQ_EV_ELS_TMO;
|
||||
/* Call callback function to complete command */
|
||||
if (io_req->cb_func && io_req->cb_arg) {
|
||||
io_req->cb_func(io_req->cb_arg);
|
||||
io_req->cb_arg = NULL;
|
||||
}
|
||||
qedf_initiate_cleanup(io_req, true);
|
||||
kref_put(&io_req->refcount, qedf_release_cmd);
|
||||
break;
|
||||
case QEDF_SEQ_CLEANUP:
|
||||
|
||||
Reference in New Issue
Block a user