Commit 87722754 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by Greg Kroah-Hartman

SCSI: hpsa: do not discard scsi status on aborted commands

commit 2e311fba upstream.

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: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 41bb75da
...@@ -1219,7 +1219,7 @@ static void complete_scsi_command(struct CommandList *cp) ...@@ -1219,7 +1219,7 @@ static void complete_scsi_command(struct CommandList *cp)
"has check condition: aborted command: " "has check condition: aborted command: "
"ASC: 0x%x, ASCQ: 0x%x\n", "ASC: 0x%x, ASCQ: 0x%x\n",
cp, asc, ascq); cp, asc, ascq);
cmd->result = DID_SOFT_ERROR << 16; cmd->result |= DID_SOFT_ERROR << 16;
break; break;
} }
/* Must be some other type of check condition */ /* Must be some other type of check condition */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment