diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-05-28 07:57:14 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-17 13:05:18 -0400 |
commit | df0ae2497ddefd72a87f3a3b34ff32455d7d4ae0 (patch) | |
tree | 552e02a44a21bd38db91729c85219542c2930ae2 /drivers/scsi/wd7000.c | |
parent | 68b3aa7c9805aee9005a8ca53c5e99177961fbb9 (diff) |
[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/wd7000.c')
-rw-r--r-- | drivers/scsi/wd7000.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c index bf4a758e2801..fb54a87a80a3 100644 --- a/drivers/scsi/wd7000.c +++ b/drivers/scsi/wd7000.c | |||
@@ -1586,9 +1586,16 @@ static int wd7000_host_reset(struct scsi_cmnd *SCpnt) | |||
1586 | { | 1586 | { |
1587 | Adapter *host = (Adapter *) SCpnt->device->host->hostdata; | 1587 | Adapter *host = (Adapter *) SCpnt->device->host->hostdata; |
1588 | 1588 | ||
1589 | if (wd7000_adapter_reset(host) < 0) | 1589 | spin_unlock_irq(SCpnt->device->host->host_lock); |
1590 | |||
1591 | if (wd7000_adapter_reset(host) < 0) { | ||
1592 | spin_unlock_irq(SCpnt->device->host->host_lock); | ||
1590 | return FAILED; | 1593 | return FAILED; |
1594 | } | ||
1595 | |||
1591 | wd7000_enable_intr(host); | 1596 | wd7000_enable_intr(host); |
1597 | |||
1598 | spin_unlock_irq(SCpnt->device->host->host_lock); | ||
1592 | return SUCCESS; | 1599 | return SUCCESS; |
1593 | } | 1600 | } |
1594 | 1601 | ||