[SCSI] hpsa: Return DID_RESET for commands which complete with status of UNSOLICITED ABORT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 26, 2010 - 7:01 pm

Gitweb:     http://git.kernel.org/linus/5f0325ab280e92c023a5610dae4a6afb6c1ef151
Commit:     5f0325ab280e92c023a5610dae4a6afb6c1ef151
Parent:     339b2b14c634da58626eb742370d915591c2fb6d
Author:     Matt Gates <matthew.gates@hp.com>
AuthorDate: Thu Feb 4 08:42:55 2010 -0600
Committer:  James Bottomley <James.Bottomley@suse.de>
CommitDate: Wed Feb 17 13:21:17 2010 -0600

    [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>
---
 drivers/scsi/hpsa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index cc9e92a..bcc51f9 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCSI] hpsa: Return DID_RESET for commands which complete ..., Linux Kernel Mailing ..., (Fri Feb 26, 7:01 pm)