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/qla1280.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/qla1280.c')
-rw-r--r-- | drivers/scsi/qla1280.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index d26dbe2a33fe..1a4ce1c39478 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -1146,7 +1146,13 @@ qla1280_eh_bus_reset(struct scsi_cmnd *cmd) | |||
1146 | static int | 1146 | static int |
1147 | qla1280_eh_adapter_reset(struct scsi_cmnd *cmd) | 1147 | qla1280_eh_adapter_reset(struct scsi_cmnd *cmd) |
1148 | { | 1148 | { |
1149 | return qla1280_error_action(cmd, ADAPTER_RESET); | 1149 | int rc; |
1150 | |||
1151 | spin_lock_irq(cmd->device->host->host_lock); | ||
1152 | rc = qla1280_error_action(cmd, ADAPTER_RESET); | ||
1153 | spin_unlock_irq(cmd->device->host->host_lock); | ||
1154 | |||
1155 | return rc; | ||
1150 | } | 1156 | } |
1151 | 1157 | ||
1152 | static int | 1158 | static int |