scsi: lpfc: Fix FW reset action if I/Os are outstanding
authorJames Smart <jsmart2021@gmail.com>
Mon, 4 Jan 2021 18:02:31 +0000 (10:02 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Jan 2021 04:02:36 +0000 (23:02 -0500)
commit3ba6216aaded84207362c806fcb4eb6197926db4
tree590421a51cb07ed22dc55e9f4587801e3618ae9d
parentc33b1609344f8ac9ac57339f487ca41d659e0143
scsi: lpfc: Fix FW reset action if I/Os are outstanding

If the port is configured for NVME and has any outstanding IOs when a FW
reset is requesteed, outstanding I/Os are not properly cleaned up. This
causes the fw download request to fail.

Fix by clearing the LPFC_SLI_ACTIVE flag to signify the I/O must be
manually flushed by the driver on port reset.

Link: https://lore.kernel.org/r/20210104180240.46824-7-jsmart2021@gmail.com
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c