|
|
@@ -9809,6 +9809,7 @@ static void scsih_remove(struct pci_dev *pdev)
|
|
|
|
|
|
/* release all the volumes */
|
|
|
_scsih_ir_shutdown(ioc);
|
|
|
+ sas_remove_host(shost);
|
|
|
list_for_each_entry_safe(raid_device, next, &ioc->raid_device_list,
|
|
|
list) {
|
|
|
if (raid_device->starget) {
|
|
|
@@ -9851,7 +9852,6 @@ static void scsih_remove(struct pci_dev *pdev)
|
|
|
ioc->sas_hba.num_phys = 0;
|
|
|
}
|
|
|
|
|
|
- sas_remove_host(shost);
|
|
|
mpt3sas_base_detach(ioc);
|
|
|
spin_lock(&gioc_lock);
|
|
|
list_del(&ioc->list);
|