summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2007-06-14 00:12:40 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-06-17 22:53:30 +0200
commit35f51eee99efe88866476300ccb7f206e88f3394 (patch)
tree5868e28632c581a261d24ae9fcdc06bce443e9b0
parent[SCSI] ibmvscsi: Misc. locking fixes (diff)
downloadlinux-35f51eee99efe88866476300ccb7f206e88f3394.tar.xz
linux-35f51eee99efe88866476300ccb7f206e88f3394.zip
[SCSI] ibmvscsi: Abort path fix
Since it is completely possible for scsi core to call a LLDD's eh_abort function after the command has completed, fix ibmvscsi to return SUCCESS if this is the case. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/ibmvscsi/ibmvscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index 934bcad39b3b..f5da7620ab59 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -1018,7 +1018,7 @@ static int ibmvscsi_eh_abort_handler(struct scsi_cmnd *cmd)
if (!found_evt) {
spin_unlock_irqrestore(hostdata->host->host_lock, flags);
- return FAILED;
+ return SUCCESS;
}
evt = get_event_struct(&hostdata->pool);