diff options
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 |