summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorMatt Gates2010-02-04 15:42:55 +0100
committerJames Bottomley2010-02-17 20:21:17 +0100
commit5f0325ab280e92c023a5610dae4a6afb6c1ef151 (patch)
tree2faf7197b20d006f32633a81289fb6af31ab9342 /drivers/scsi/hpsa.c
parent[SCSI] hpsa: Fix p1210m LUN assignment. (diff)
downloadkernel-qcow2-linux-5f0325ab280e92c023a5610dae4a6afb6c1ef151.tar.gz
kernel-qcow2-linux-5f0325ab280e92c023a5610dae4a6afb6c1ef151.tar.xz
kernel-qcow2-linux-5f0325ab280e92c023a5610dae4a6afb6c1ef151.zip
[SCSI] hpsa: Return DID_RESET for commands which complete with status of UNSOLICITED ABORT
The commands should be retried, and this will make that happen, instead of resulting in an i/o error. Signed-off-by: Matt Gates <matthew.gates@hp.com> Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index cc9e92a3be22..bcc51f9d3903 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -1128,7 +1128,7 @@ static void complete_scsi_command(struct CommandList *cp,
dev_warn(&h->pdev->dev, "cp %p reports abort failed\n", cp);
break;
case CMD_UNSOLICITED_ABORT:
- cmd->result = DID_ABORT << 16;
+ cmd->result = DID_RESET << 16;
dev_warn(&h->pdev->dev, "cp %p aborted do to an unsolicited "
"abort\n", cp);
break;