|
@@ -767,17 +767,12 @@ static int megasas_generic_reset(struct scsi_cmnd *scmd)
|
|
return FAILED;
|
|
return FAILED;
|
|
}
|
|
}
|
|
|
|
|
|
- spin_unlock(scmd->device->host->host_lock);
|
|
|
|
-
|
|
|
|
ret_val = megasas_wait_for_outstanding(instance);
|
|
ret_val = megasas_wait_for_outstanding(instance);
|
|
-
|
|
|
|
if (ret_val == SUCCESS)
|
|
if (ret_val == SUCCESS)
|
|
printk(KERN_NOTICE "megasas: reset successful \n");
|
|
printk(KERN_NOTICE "megasas: reset successful \n");
|
|
else
|
|
else
|
|
printk(KERN_ERR "megasas: failed to do reset\n");
|
|
printk(KERN_ERR "megasas: failed to do reset\n");
|
|
|
|
|
|
- spin_lock(scmd->device->host->host_lock);
|
|
|
|
-
|
|
|
|
return ret_val;
|
|
return ret_val;
|
|
}
|
|
}
|
|
|
|
|