aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/in2000.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-05-28 07:54:40 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-06-17 13:04:55 -0400
commit8fa728a26886f56a9ee10a44fea0ddda301d21c3 (patch)
tree105ead5c90057400abae0c8aa9e2b5ba1818c327 /drivers/scsi/in2000.c
parent3471c288036bf0835a82d0b1bbce2002f6e68390 (diff)
[SCSI] allow sleeping in ->eh_abort_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/in2000.c')
-rw-r--r--drivers/scsi/in2000.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c
index e1fe6f13b829..fbb29f7971d7 100644
--- a/drivers/scsi/in2000.c
+++ b/drivers/scsi/in2000.c
@@ -1671,7 +1671,7 @@ static int in2000_bus_reset(Scsi_Cmnd * cmd)
1671 return SUCCESS; 1671 return SUCCESS;
1672} 1672}
1673 1673
1674static int in2000_abort(Scsi_Cmnd * cmd) 1674static int __in2000_abort(Scsi_Cmnd * cmd)
1675{ 1675{
1676 struct Scsi_Host *instance; 1676 struct Scsi_Host *instance;
1677 struct IN2000_hostdata *hostdata; 1677 struct IN2000_hostdata *hostdata;
@@ -1792,6 +1792,16 @@ static int in2000_abort(Scsi_Cmnd * cmd)
1792 return SUCCESS; 1792 return SUCCESS;
1793} 1793}
1794 1794
1795static int in2000_abort(Scsi_Cmnd * cmd)
1796{
1797 int rc;
1798
1799 spin_lock_irq(cmd->device->host->host_lock);
1800 rc = __in2000_abort(cmd);
1801 spin_unlock_irq(cmd->device->host->host_lock);
1802
1803 return rc;
1804}
1795 1805
1796 1806
1797#define MAX_IN2000_HOSTS 3 1807#define MAX_IN2000_HOSTS 3