Skip to content

Commit 57ea41e

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Return early in lpfc_poll_eratt() when the driver is unloading
Add a check in lpfc_poll_eratt() when the driver is unloading. There is no point to check for error attention events if the driver is rmmod'ed. If the driver is reloaded, as part of insmod initialization, then a fresh reset is always asserted to start clean and free of error attention events. Signed-off-by: Justin Tee <justin.tee@broadcom.com> Link: https://lore.kernel.org/r/20231031191224.150862-6-justintee8345@gmail.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent e07ac2d commit 57ea41e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/scsi/lpfc/lpfc_sli.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,6 +3938,9 @@ void lpfc_poll_eratt(struct timer_list *t)
39383938
if (!(phba->hba_flag & HBA_SETUP))
39393939
return;
39403940

3941+
if (phba->pport->load_flag & FC_UNLOADING)
3942+
return;
3943+
39413944
/* Here we will also keep track of interrupts per sec of the hba */
39423945
sli_intr = phba->sli.slistat.sli_intr;
39433946

0 commit comments

Comments
 (0)