aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha1542.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-05-28 07:57:14 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-06-17 13:05:18 -0400
commitdf0ae2497ddefd72a87f3a3b34ff32455d7d4ae0 (patch)
tree552e02a44a21bd38db91729c85219542c2930ae2 /drivers/scsi/aha1542.c
parent68b3aa7c9805aee9005a8ca53c5e99177961fbb9 (diff)
[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aha1542.c')
-rw-r--r--drivers/scsi/aha1542.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c
index f911b51e3042..9ec4641a6348 100644
--- a/drivers/scsi/aha1542.c
+++ b/drivers/scsi/aha1542.c
@@ -1530,7 +1530,6 @@ static int aha1542_host_reset(Scsi_Cmnd * SCpnt)
1530 * check for timeout, and if we are doing something like this 1530 * check for timeout, and if we are doing something like this
1531 * we are pretty desperate anyways. 1531 * we are pretty desperate anyways.
1532 */ 1532 */
1533 spin_unlock_irq(SCpnt->device->host->host_lock);
1534 ssleep(4); 1533 ssleep(4);
1535 spin_lock_irq(SCpnt->device->host->host_lock); 1534 spin_lock_irq(SCpnt->device->host->host_lock);
1536 1535
@@ -1574,9 +1573,11 @@ static int aha1542_host_reset(Scsi_Cmnd * SCpnt)
1574 } 1573 }
1575 } 1574 }
1576 1575
1576 spin_unlock_irq(SCpnt->device->host->host_lock);
1577 return SUCCESS; 1577 return SUCCESS;
1578 1578
1579fail: 1579fail:
1580 spin_unlock_irq(SCpnt->device->host->host_lock);
1580 return FAILED; 1581 return FAILED;
1581} 1582}
1582 1583