]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Add cleanup of nvmels_wq after HBA reset
authorJustin Tee <justin.tee@broadcom.com>
Thu, 31 Oct 2024 22:32:14 +0000 (15:32 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 3 Nov 2024 01:45:24 +0000 (21:45 -0400)
commiteb038363d8e9ae0d9fa31a0600438d19b283dd41
treeb74d34c02f62b03c75633c5a2f7a05c1d3e29452
parent98f8d3588097e321be70f83b844fa67d4828fe5c
scsi: lpfc: Add cleanup of nvmels_wq after HBA reset

An HBA reset request that is executed when there are outstanding NVME-LS
commands can cause delays for the reset process to complete.  Fix by
introducing a new routine called lpfc_nvmels_flush_cmd() that walks the
phba->nvmels_wq list and cancels outstanding submitted NVME-LS requests
speeding up the HBA reset process.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20241031223219.152342-7-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_crtn.h
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_nvme.c