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/ipr.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/ipr.c')
-rw-r--r-- | drivers/scsi/ipr.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index fd8af643feac..17b106b79f72 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -2885,7 +2885,7 @@ static int ipr_slave_alloc(struct scsi_device *sdev) | |||
2885 | * Return value: | 2885 | * Return value: |
2886 | * SUCCESS / FAILED | 2886 | * SUCCESS / FAILED |
2887 | **/ | 2887 | **/ |
2888 | static int ipr_eh_host_reset(struct scsi_cmnd * scsi_cmd) | 2888 | static int __ipr_eh_host_reset(struct scsi_cmnd * scsi_cmd) |
2889 | { | 2889 | { |
2890 | struct ipr_ioa_cfg *ioa_cfg; | 2890 | struct ipr_ioa_cfg *ioa_cfg; |
2891 | int rc; | 2891 | int rc; |
@@ -2905,6 +2905,17 @@ static int ipr_eh_host_reset(struct scsi_cmnd * scsi_cmd) | |||
2905 | return rc; | 2905 | return rc; |
2906 | } | 2906 | } |
2907 | 2907 | ||
2908 | static int ipr_eh_host_reset(struct scsi_cmnd * cmd) | ||
2909 | { | ||
2910 | int rc; | ||
2911 | |||
2912 | spin_lock_irq(cmd->device->host->host_lock); | ||
2913 | rc = __ipr_eh_host_reset(cmd); | ||
2914 | spin_unlock_irq(cmd->device->host->host_lock); | ||
2915 | |||
2916 | return rc; | ||
2917 | } | ||
2918 | |||
2908 | /** | 2919 | /** |
2909 | * ipr_eh_dev_reset - Reset the device | 2920 | * ipr_eh_dev_reset - Reset the device |
2910 | * @scsi_cmd: scsi command struct | 2921 | * @scsi_cmd: scsi command struct |