[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
@ -873,7 +873,7 @@ ips_eh_abort(Scsi_Cmnd * SC)
|
||||
/* */
|
||||
/****************************************************************************/
|
||||
static int
|
||||
ips_eh_reset(Scsi_Cmnd * SC)
|
||||
__ips_eh_reset(Scsi_Cmnd * SC)
|
||||
{
|
||||
int ret;
|
||||
int i;
|
||||
@ -1060,6 +1060,18 @@ ips_eh_reset(Scsi_Cmnd * SC)
|
||||
|
||||
}
|
||||
|
||||
static int
|
||||
ips_eh_reset(Scsi_Cmnd * SC)
|
||||
{
|
||||
int rc;
|
||||
|
||||
spin_lock_irq(SC->device->host->host_lock);
|
||||
rc = __ips_eh_reset(SC);
|
||||
spin_unlock_irq(SC->device->host->host_lock);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* */
|
||||
/* Routine Name: ips_queue */
|
||||
|
Reference in New Issue
Block a user