Skip to content

Commit

Permalink
[SCSI] be2iscsi: Add pci_disable device
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
Jayamohan Kallickal authored and James Bottomley committed Aug 29, 2011
1 parent 25602c9 commit 8dce69f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/be2iscsi/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4181,6 +4181,7 @@ static void beiscsi_remove(struct pci_dev *pcidev)
iscsi_host_remove(phba->shost);
pci_dev_put(phba->pcidev);
iscsi_host_free(phba->shost);
pci_disable_device(pcidev);
}

static void beiscsi_shutdown(struct pci_dev *pcidev)
Expand All @@ -4195,6 +4196,7 @@ static void beiscsi_shutdown(struct pci_dev *pcidev)
}

beiscsi_quiesce(phba);
pci_disable_device(pcidev);
}

static void beiscsi_msix_enable(struct beiscsi_hba *phba)
Expand Down

0 comments on commit 8dce69f

Please sign in to comment.