Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53281edb authored by John Soni Jose's avatar John Soni Jose Committed by Christoph Hellwig
Browse files

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: default avatarJohn Soni Jose <sony.john-n@emulex.com>
Signed-off-by: default avatarJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent f4303d8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5223,6 +5223,7 @@ static void beiscsi_quiesce(struct beiscsi_hba *phba,
			free_irq(phba->pcidev->irq, phba);
		}
	pci_disable_msix(phba->pcidev);
	cancel_delayed_work_sync(&phba->beiscsi_hw_check_task);

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

	cancel_delayed_work_sync(&phba->beiscsi_hw_check_task);
}

static void beiscsi_remove(struct pci_dev *pcidev)