scsi: qla2xxx: Do command completion on abort timeout
authorQuinn Tran <qutran@marvell.com>
Tue, 5 Nov 2019 15:06:51 +0000 (07:06 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 9 Nov 2019 02:15:41 +0000 (21:15 -0500)
commit71c80b75ce8f08c0978ce9a9816b81b5c3ce5e12
tree14894b06dd1bd2fb13221b16043fc05708557fd0
parent983f127603fac650fa34ee69db363e4615eaf9e7
scsi: qla2xxx: Do command completion on abort timeout

On switch, fabric and mgt command timeout, driver send Abort to tell FW to
return the original command.  If abort is timeout, then return both Abort
and original command for cleanup.

Fixes: 219d27d7147e0 ("scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands")
Cc: stable@vger.kernel.org # 5.2
Link: https://lore.kernel.org/r/20191105150657.8092-3-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_init.c