|
@@ -2755,6 +2755,7 @@ qla2x00_remove_one(struct pci_dev *pdev)
|
|
|
|
|
|
ha->flags.host_shutting_down = 1;
|
|
|
|
|
|
+ set_bit(UNLOADING, &base_vha->dpc_flags);
|
|
|
mutex_lock(&ha->vport_lock);
|
|
|
while (ha->cur_vport_count) {
|
|
|
struct Scsi_Host *scsi_host;
|
|
@@ -2784,8 +2785,6 @@ qla2x00_remove_one(struct pci_dev *pdev)
|
|
|
"Error while clearing DRV-Presence.\n");
|
|
|
}
|
|
|
|
|
|
- set_bit(UNLOADING, &base_vha->dpc_flags);
|
|
|
-
|
|
|
qla2x00_abort_all_cmds(base_vha, DID_NO_CONNECT << 16);
|
|
|
|
|
|
qla2x00_dfs_remove(base_vha);
|