[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
@@ -1586,9 +1586,16 @@ static int wd7000_host_reset(struct scsi_cmnd *SCpnt)
|
||||
{
|
||||
Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
|
||||
|
||||
if (wd7000_adapter_reset(host) < 0)
|
||||
spin_unlock_irq(SCpnt->device->host->host_lock);
|
||||
|
||||
if (wd7000_adapter_reset(host) < 0) {
|
||||
spin_unlock_irq(SCpnt->device->host->host_lock);
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
wd7000_enable_intr(host);
|
||||
|
||||
spin_unlock_irq(SCpnt->device->host->host_lock);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user