|
|
@@ -2729,9 +2729,18 @@ _scsih_host_reset(struct scsi_cmnd *scmd)
|
|
|
ioc->name, scmd);
|
|
|
scsi_print_command(scmd);
|
|
|
|
|
|
+ if (ioc->is_driver_loading) {
|
|
|
+ printk(MPT2SAS_INFO_FMT "Blocking the host reset\n",
|
|
|
+ ioc->name);
|
|
|
+ r = FAILED;
|
|
|
+ goto out;
|
|
|
+ }
|
|
|
+
|
|
|
retval = mpt2sas_base_hard_reset_handler(ioc, CAN_SLEEP,
|
|
|
FORCE_BIG_HAMMER);
|
|
|
r = (retval < 0) ? FAILED : SUCCESS;
|
|
|
+
|
|
|
+ out:
|
|
|
printk(MPT2SAS_INFO_FMT "host reset: %s scmd(%p)\n",
|
|
|
ioc->name, ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd);
|
|
|
|