]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: qla2xxx: Delay I/O Abort on PCI error
authorQuinn Tran <qutran@marvell.com>
Tue, 27 Feb 2024 16:41:26 +0000 (22:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:29:02 +0000 (15:29 +0200)
commita492d6dad9afd8fc5247761c276d6006c0b65b36
tree1c09a821409c0b9922968790577f758dbc8debfe
parent29520a334f3eeb7f2ec8a5d9c48d62bc73ffdeff
scsi: qla2xxx: Delay I/O Abort on PCI error

commit 591c1fdf2016d118b8fbde427b796fac13f3f070 upstream.

Currently when PCI error is detected, I/O is aborted manually through the
ABORT IOCB mechanism which is not guaranteed to succeed.

Instead, wait for the OS or system to notify driver to wind down I/O
through the pci_error_handlers api.  Set eeh_busy flag to pause all traffic
and wait for I/O to drain.

Cc: stable@vger.kernel.org
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240227164127.36465-11-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_attr.c