diff options
author | James Smart <jsmart2021@gmail.com> | 2021-07-07 20:43:43 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-07-19 04:30:36 +0200 |
commit | a9978e3978406ef5e35870b10e677cf75a2620b6 (patch) | |
tree | aa85428bc55e0302a10ef7662681059faba84a1c /drivers/scsi/lpfc/lpfc_attr.c | |
parent | scsi: lpfc: Fix KASAN slab-out-of-bounds in lpfc_unreg_rpi() routine (diff) | |
download | linux-a9978e3978406ef5e35870b10e677cf75a2620b6.tar.xz linux-a9978e3978406ef5e35870b10e677cf75a2620b6.zip |
scsi: lpfc: Clear outstanding active mailbox during PCI function reset
Mailbox commands sent via ioctl/bsg from user applications may be
interrupted from processing by a concurrently triggered PCI function
reset. The command will not generate a completion due to the reset. This
results in a user application hang waiting for the mailbox command to
complete.
Resolve by changing the function reset handler to detect that there was an
outstanding mailbox command and simulate a mailbox completion. Add some
additional debug when a mailbox command times out.
Link: https://lore.kernel.org/r/20210707184351.67872-13-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
0 files changed, 0 insertions, 0 deletions