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/BusLogic.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/BusLogic.c')
-rw-r--r-- | drivers/scsi/BusLogic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 15e4b122d56e..9d6040bfa064 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c | |||
@@ -2746,9 +2746,15 @@ static int BusLogic_host_reset(struct scsi_cmnd * SCpnt) | |||
2746 | 2746 | ||
2747 | unsigned int id = SCpnt->device->id; | 2747 | unsigned int id = SCpnt->device->id; |
2748 | struct BusLogic_TargetStatistics *stats = &HostAdapter->TargetStatistics[id]; | 2748 | struct BusLogic_TargetStatistics *stats = &HostAdapter->TargetStatistics[id]; |
2749 | int rc; | ||
2750 | |||
2751 | spin_lock_irq(SCpnt->device->host->host_lock); | ||
2752 | |||
2749 | BusLogic_IncrementErrorCounter(&stats->HostAdapterResetsRequested); | 2753 | BusLogic_IncrementErrorCounter(&stats->HostAdapterResetsRequested); |
2750 | 2754 | ||
2751 | return BusLogic_ResetHostAdapter(HostAdapter, false); | 2755 | rc = BusLogic_ResetHostAdapter(HostAdapter, false); |
2756 | spin_unlock_irq(SCpnt->device->host->host_lock); | ||
2757 | return rc; | ||
2752 | } | 2758 | } |
2753 | 2759 | ||
2754 | /* | 2760 | /* |