[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
@ -1899,7 +1899,6 @@ mptscsih_host_reset(struct scsi_cmnd *SCpnt)
|
||||
{
|
||||
MPT_SCSI_HOST * hd;
|
||||
int status = SUCCESS;
|
||||
spinlock_t *host_lock = SCpnt->device->host->host_lock;
|
||||
|
||||
/* If we can't locate the host to reset, then we failed. */
|
||||
if ((hd = (MPT_SCSI_HOST *) SCpnt->device->host->hostdata) == NULL){
|
||||
@ -1915,7 +1914,6 @@ mptscsih_host_reset(struct scsi_cmnd *SCpnt)
|
||||
/* If our attempts to reset the host failed, then return a failed
|
||||
* status. The host will be taken off line by the SCSI mid-layer.
|
||||
*/
|
||||
spin_unlock_irq(host_lock);
|
||||
if (mpt_HardResetHandler(hd->ioc, CAN_SLEEP) < 0){
|
||||
status = FAILED;
|
||||
} else {
|
||||
@ -1925,8 +1923,6 @@ mptscsih_host_reset(struct scsi_cmnd *SCpnt)
|
||||
hd->tmPending = 0;
|
||||
hd->tmState = TM_STATE_NONE;
|
||||
}
|
||||
spin_lock_irq(host_lock);
|
||||
|
||||
|
||||
dtmprintk( ( KERN_WARNING MYNAM ": mptscsih_host_reset: "
|
||||
"Status = %s\n",
|
||||
|
Reference in New Issue
Block a user