* [PATCH] hpsa: retry commands completing with status of UNSOLICITED_ABORT
@ 2011-07-26 16:08 Stephen M. Cameron
2011-08-04 14:39 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Stephen M. Cameron @ 2011-07-26 16:08 UTC (permalink / raw)
To: james.bottomley
Cc: linux-scsi, linux-kernel, mikem, stephenmcameron, thenzl, akpm,
stable
From: Stephen M. Cameron <scameron@beardog.cce.hp.com>
In a shared SAS setup, target devices may be reset by one of
several hosts, and outstanding commands on that device will be
completed to corresponding hosts with status of UNSOLICITED_ABORT.
Such commands should be retried instead of being treated as i/o
errors. Also fixed a nearby spelling error.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
---
drivers/scsi/hpsa.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 6bba23a..b64b29f 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -1219,8 +1219,8 @@ 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_RESET << 16;
- dev_warn(&h->pdev->dev, "cp %p aborted do to an unsolicited "
+ cmd->result = DID_SOFT_ERROR << 16; /* retry the command */
+ dev_warn(&h->pdev->dev, "cp %p aborted due to an unsolicited "
"abort\n", cp);
break;
case CMD_TIMEOUT:
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hpsa: retry commands completing with status of UNSOLICITED_ABORT
2011-07-26 16:08 [PATCH] hpsa: retry commands completing with status of UNSOLICITED_ABORT Stephen M. Cameron
@ 2011-08-04 14:39 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2011-08-04 14:39 UTC (permalink / raw)
To: Stephen M. Cameron
Cc: james.bottomley, linux-scsi, linux-kernel, mikem, stephenmcameron,
thenzl, akpm, stable
On Tue, Jul 26, 2011 at 11:08:52AM -0500, Stephen M. Cameron wrote:
> From: Stephen M. Cameron <scameron@beardog.cce.hp.com>
>
> In a shared SAS setup, target devices may be reset by one of
> several hosts, and outstanding commands on that device will be
> completed to corresponding hosts with status of UNSOLICITED_ABORT.
> Such commands should be retried instead of being treated as i/o
> errors. Also fixed a nearby spelling error.
>
> Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
> ---
> drivers/scsi/hpsa.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-04 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 16:08 [PATCH] hpsa: retry commands completing with status of UNSOLICITED_ABORT Stephen M. Cameron
2011-08-04 14:39 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox