[SCSI] be2iscsi: Add pci_disable device
This patch adds call to pci_disable_device during rmmod and shutdown. The lack of this call was causing hang in insmod - rmmod loop test Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
25602c97f5
commit
8dce69ff48
drivers/scsi/be2iscsi
|
@ -4181,6 +4181,7 @@ static void beiscsi_remove(struct pci_dev *pcidev)
|
||||||
iscsi_host_remove(phba->shost);
|
iscsi_host_remove(phba->shost);
|
||||||
pci_dev_put(phba->pcidev);
|
pci_dev_put(phba->pcidev);
|
||||||
iscsi_host_free(phba->shost);
|
iscsi_host_free(phba->shost);
|
||||||
|
pci_disable_device(pcidev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void beiscsi_shutdown(struct pci_dev *pcidev)
|
static void beiscsi_shutdown(struct pci_dev *pcidev)
|
||||||
|
@ -4195,6 +4196,7 @@ static void beiscsi_shutdown(struct pci_dev *pcidev)
|
||||||
}
|
}
|
||||||
|
|
||||||
beiscsi_quiesce(phba);
|
beiscsi_quiesce(phba);
|
||||||
|
pci_disable_device(pcidev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void beiscsi_msix_enable(struct beiscsi_hba *phba)
|
static void beiscsi_msix_enable(struct beiscsi_hba *phba)
|
||||||
|
|
Loading…
Reference in New Issue