From: Matt Gates Date: Thu, 4 Feb 2010 14:43:00 +0000 (-0600) Subject: [SCSI] hpsa: Retry commands completing with a sense key of ABORTED_COMMAND X-Git-Tag: v2.6.34-rc1~284^2~64 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1d3b36090551a31b8b8c4ba972aac95eaa8f77dd;p=karo-tx-linux.git [SCSI] hpsa: Retry commands completing with a sense key of ABORTED_COMMAND Signed-off-by: Matt Gates Signed-off-by: Stephen M. Cameron Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index bcc51f9d3903..d07b3d3f11a4 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1037,8 +1037,15 @@ static void complete_scsi_command(struct CommandList *cp, break; } } - - + if (sense_key == ABORTED_COMMAND) { + /* Aborted command is retryable */ + dev_warn(&h->pdev->dev, "cp %p " + "has check condition: aborted command: " + "ASC: 0x%x, ASCQ: 0x%x\n", + cp, asc, ascq); + cmd->result = DID_SOFT_ERROR << 16; + break; + } /* Must be some other type of check condition */ dev_warn(&h->pdev->dev, "cp %p has check condition: " "unknown type: "