aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_main.c
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohan.kallickal@emulex.com>2011-08-22 13:08:29 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-29 03:16:18 -0400
commit8dce69ff481a8d17a7d1027f23595083f28b4556 (patch)
tree3ff0ebf6f1709a928410895de3ed97afa80e01cb /drivers/scsi/be2iscsi/be_main.c
parent25602c97f50e4b7fea84d2c81326dc5e372ca868 (diff)
[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>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.c')
-rw-r--r--drivers/scsi/be2iscsi/be_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 51cfd4f2911d..57fea3848b69 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -4181,6 +4181,7 @@ static void beiscsi_remove(struct pci_dev *pcidev)
4181 iscsi_host_remove(phba->shost); 4181 iscsi_host_remove(phba->shost);
4182 pci_dev_put(phba->pcidev); 4182 pci_dev_put(phba->pcidev);
4183 iscsi_host_free(phba->shost); 4183 iscsi_host_free(phba->shost);
4184 pci_disable_device(pcidev);
4184} 4185}
4185 4186
4186static void beiscsi_shutdown(struct pci_dev *pcidev) 4187static void beiscsi_shutdown(struct pci_dev *pcidev)
@@ -4195,6 +4196,7 @@ static void beiscsi_shutdown(struct pci_dev *pcidev)
4195 } 4196 }
4196 4197
4197 beiscsi_quiesce(phba); 4198 beiscsi_quiesce(phba);
4199 pci_disable_device(pcidev);
4198} 4200}
4199 4201
4200static void beiscsi_msix_enable(struct beiscsi_hba *phba) 4202static void beiscsi_msix_enable(struct beiscsi_hba *phba)