[SCSI] hpsa: do not discard scsi status on aborted commands
authorStephen M. Cameron <[email protected]>
Mon, 23 Sep 2013 18:33:41 +0000 (13:33 -0500)
committerJames Bottomley <[email protected]>
Sat, 30 Nov 2013 22:04:49 +0000 (17:04 -0500)
We inadvertantly discarded the scsi status for aborted commands.
For some commands (e.g. reads from tape drives) these can't be retried,
and if we discarded the scsi status, the scsi mid layer couldn't notice
anything was wrong and the error was not reported.

Signed-off-by: Stephen M. Cameron <[email protected]>
Cc: [email protected]
Signed-off-by: James Bottomley <[email protected]>
drivers/scsi/hpsa.c

index 2336beff7a4869f5bd10bb3045523f3ee32c1953..595a2a7115488bd9217822a10c59f5418ac70152 100644 (file)
@@ -1289,7 +1289,7 @@ static void complete_scsi_command(struct CommandList *cp)
                                        "has check condition: aborted command: "
                                        "ASC: 0x%x, ASCQ: 0x%x\n",
                                        cp, asc, ascq);
-                               cmd->result = DID_SOFT_ERROR << 16;
+                               cmd->result |= DID_SOFT_ERROR << 16;
                                break;
                        }
                        /* Must be some other type of check condition */