diff options
author | Justin Tee <justin.tee@broadcom.com> | 2023-07-12 11:05:18 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-07-23 16:17:07 -0400 |
commit | 089ea22e374aa20043e72243c47b5867d5419d38 (patch) | |
tree | 6a274539446306a73dedba8dd5d7c4de0564d8b3 /drivers/scsi/lpfc/lpfc_nvmet.c | |
parent | 9388da30376670613d7b8031e6d62b0b6ce08228 (diff) |
scsi: lpfc: Abort outstanding ELS cmds when mailbox timeout error is detected
A mailbox timeout error usually indicates something has gone wrong, and a
follow up reset of the HBA is a typical recovery mechanism. Introduce a
MBX_TMO_ERR flag to detect such cases and have lpfc_els_flush_cmd abort ELS
commands if the MBX_TMO_ERR flag condition was set. This ensures all of
the registered SGL resources meant for ELS traffic are not leaked after an
HBA reset.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230712180522.112722-9-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nvmet.c')
0 files changed, 0 insertions, 0 deletions