aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/in2000.c
diff options
context:
space:
mode:
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