]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: qla2xxx: Do command completion on abort timeout
authorQuinn Tran <qutran@marvell.com>
Tue, 5 Nov 2019 15:06:51 +0000 (07:06 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 13:29:07 +0000 (07:29 -0600)
commit04adcd96d95d8a78f4ac949e084289ef14ca21c2
treec2b6f0101b9ffc8b2e149a9a128589a26c008486
parent366ea0ca54a6cb12f18b434f84c62055be3c999a
scsi: qla2xxx: Do command completion on abort timeout

BugLink: https://bugs.launchpad.net/bugs/1858424
commit 71c80b75ce8f08c0978ce9a9816b81b5c3ce5e12 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_init.c