diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-05-28 07:54:40 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-17 13:04:55 -0400 |
commit | 8fa728a26886f56a9ee10a44fea0ddda301d21c3 (patch) | |
tree | 105ead5c90057400abae0c8aa9e2b5ba1818c327 /drivers/scsi/sym53c8xx_2 | |
parent | 3471c288036bf0835a82d0b1bbce2002f6e68390 (diff) |
[SCSI] allow sleeping in ->eh_abort_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index be58ffd5a432..e2d055ed5b6f 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -856,7 +856,13 @@ prepare: | |||
856 | */ | 856 | */ |
857 | static int sym53c8xx_eh_abort_handler(struct scsi_cmnd *cmd) | 857 | static int sym53c8xx_eh_abort_handler(struct scsi_cmnd *cmd) |
858 | { | 858 | { |
859 | return sym_eh_handler(SYM_EH_ABORT, "ABORT", cmd); | 859 | int rc; |
860 | |||
861 | spin_lock_irq(cmd->device->host->host_lock); | ||
862 | rc = sym_eh_handler(SYM_EH_ABORT, "ABORT", cmd); | ||
863 | spin_unlock_irq(cmd->device->host->host_lock); | ||
864 | |||
865 | return rc; | ||
860 | } | 866 | } |
861 | 867 | ||
862 | static int sym53c8xx_eh_device_reset_handler(struct scsi_cmnd *cmd) | 868 | static int sym53c8xx_eh_device_reset_handler(struct scsi_cmnd *cmd) |