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/aic7xxx_old.c | |
parent | 3471c288036bf0835a82d0b1bbce2002f6e68390 (diff) |
[SCSI] allow sleeping in ->eh_abort_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx_old.c')
-rw-r--r-- | drivers/scsi/aic7xxx_old.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index 9e9d0c40187e..ee127e8aea55 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c | |||
@@ -10585,7 +10585,7 @@ aic7xxx_panic_abort(struct aic7xxx_host *p, Scsi_Cmnd *cmd) | |||
10585 | * Abort the current SCSI command(s). | 10585 | * Abort the current SCSI command(s). |
10586 | *-F*************************************************************************/ | 10586 | *-F*************************************************************************/ |
10587 | static int | 10587 | static int |
10588 | aic7xxx_abort(Scsi_Cmnd *cmd) | 10588 | __aic7xxx_abort(Scsi_Cmnd *cmd) |
10589 | { | 10589 | { |
10590 | struct aic7xxx_scb *scb = NULL; | 10590 | struct aic7xxx_scb *scb = NULL; |
10591 | struct aic7xxx_host *p; | 10591 | struct aic7xxx_host *p; |
@@ -10802,6 +10802,19 @@ success: | |||
10802 | return SUCCESS; | 10802 | return SUCCESS; |
10803 | } | 10803 | } |
10804 | 10804 | ||
10805 | static int | ||
10806 | aic7xxx_abort(Scsi_Cmnd *cmd) | ||
10807 | { | ||
10808 | int rc; | ||
10809 | |||
10810 | spin_lock_irq(cmd->device->host->host_lock); | ||
10811 | rc = __aic7xxx_abort(cmd); | ||
10812 | spin_unlock_irq(cmd->device->host->host_lock); | ||
10813 | |||
10814 | return rc; | ||
10815 | } | ||
10816 | |||
10817 | |||
10805 | /*+F************************************************************************* | 10818 | /*+F************************************************************************* |
10806 | * Function: | 10819 | * Function: |
10807 | * aic7xxx_reset | 10820 | * aic7xxx_reset |