Skip to content

Commit 53281ed

Browse files
John Soni JoseChristoph Hellwig
authored andcommitted
be2iscsi : Fix kernel panic during reboot/shutdown
In the reboot/shutdown path, workqueue was destroyed after the adapter resource were freed. The task associated with workqueue was getting executed after resources were freed. This lead to kernel panic. Signed-off-by: John Soni Jose <sony.john-n@emulex.com> Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent f4303d8 commit 53281ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/scsi/be2iscsi/be_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5223,6 +5223,7 @@ static void beiscsi_quiesce(struct beiscsi_hba *phba,
52235223
free_irq(phba->pcidev->irq, phba);
52245224
}
52255225
pci_disable_msix(phba->pcidev);
5226+
cancel_delayed_work_sync(&phba->beiscsi_hw_check_task);
52265227

52275228
for (i = 0; i < phba->num_cpus; i++) {
52285229
pbe_eq = &phwi_context->be_eq[i];
@@ -5244,7 +5245,6 @@ static void beiscsi_quiesce(struct beiscsi_hba *phba,
52445245
hwi_cleanup(phba);
52455246
}
52465247

5247-
cancel_delayed_work_sync(&phba->beiscsi_hw_check_task);
52485248
}
52495249

52505250
static void beiscsi_remove(struct pci_dev *pcidev)

0 commit comments

Comments
 (0)