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/arm | |
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/arm')
-rw-r--r-- | drivers/scsi/arm/fas216.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index 3838f88e1fe0..4772fb317f3e 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c | |||
@@ -2659,6 +2659,8 @@ int fas216_eh_host_reset(Scsi_Cmnd *SCpnt) | |||
2659 | { | 2659 | { |
2660 | FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; | 2660 | FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; |
2661 | 2661 | ||
2662 | spin_lock_irq(info->host->host_lock); | ||
2663 | |||
2662 | fas216_checkmagic(info); | 2664 | fas216_checkmagic(info); |
2663 | 2665 | ||
2664 | printk("scsi%d.%c: %s: resetting host\n", | 2666 | printk("scsi%d.%c: %s: resetting host\n", |
@@ -2686,6 +2688,7 @@ int fas216_eh_host_reset(Scsi_Cmnd *SCpnt) | |||
2686 | 2688 | ||
2687 | fas216_init_chip(info); | 2689 | fas216_init_chip(info); |
2688 | 2690 | ||
2691 | spin_unlock_irq(info->host->host_lock); | ||
2689 | return SUCCESS; | 2692 | return SUCCESS; |
2690 | } | 2693 | } |
2691 | 2694 | ||