[SCSI] ibmvscsi: Abort path fix
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 13 Jun 2007 22:12:40 +0000 (17:12 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 17 Jun 2007 20:53:30 +0000 (15:53 -0500)
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>
drivers/scsi/ibmvscsi/ibmvscsi.c

index 934bcad39b3b76f7ca9778a5f12844c8f78d9e89..f5da7620ab59c64b559eebb262722b3f08ef826c 100644 (file)
@@ -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);