* [PATCH] ncr5380: Don't re-enter NCR5380_select() when aborting a command
@ 2016-01-26 2:31 Finn Thain
2016-02-22 23:01 ` Finn Thain
0 siblings, 1 reply; 2+ messages in thread
From: Finn Thain @ 2016-01-26 2:31 UTC (permalink / raw)
To: James E.J. Bottomley, Martin K. Petersen, Michael Schmitz,
linux-m68k, linux-scsi
[-- Attachment #1: ncr5380-dont-reenter-NCR5380_select --]
[-- Type: text/plain, Size: 1544 bytes --]
Fixes: 707d62b37fbb ("ncr5380: Fix EH during arbitration and selection")
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
---
drivers/scsi/NCR5380.c | 2 +-
drivers/scsi/atari_NCR5380.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: linux/drivers/scsi/NCR5380.c
===================================================================
--- linux.orig/drivers/scsi/NCR5380.c 2016-01-26 13:31:10.000000000 +1100
+++ linux/drivers/scsi/NCR5380.c 2016-01-26 13:31:10.000000000 +1100
@@ -2337,7 +2337,7 @@ static int NCR5380_abort(struct scsi_cmn
dsprintk(NDEBUG_ABORT, instance,
"abort: removed %p from disconnected list\n", cmd);
cmd->result = DID_ERROR << 16;
- if (!hostdata->connected)
+ if (!hostdata->connected && !hostdata->selecting)
NCR5380_select(instance, cmd);
if (hostdata->connected != cmd) {
complete_cmd(instance, cmd);
Index: linux/drivers/scsi/atari_NCR5380.c
===================================================================
--- linux.orig/drivers/scsi/atari_NCR5380.c 2016-01-26 13:31:10.000000000 +1100
+++ linux/drivers/scsi/atari_NCR5380.c 2016-01-26 13:31:10.000000000 +1100
@@ -2532,7 +2532,7 @@ static int NCR5380_abort(struct scsi_cmn
dsprintk(NDEBUG_ABORT, instance,
"abort: removed %p from disconnected list\n", cmd);
cmd->result = DID_ERROR << 16;
- if (!hostdata->connected)
+ if (!hostdata->connected && !hostdata->selecting)
NCR5380_select(instance, cmd);
if (hostdata->connected != cmd) {
complete_cmd(instance, cmd);
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ncr5380: Don't re-enter NCR5380_select() when aborting a command
2016-01-26 2:31 [PATCH] ncr5380: Don't re-enter NCR5380_select() when aborting a command Finn Thain
@ 2016-02-22 23:01 ` Finn Thain
0 siblings, 0 replies; 2+ messages in thread
From: Finn Thain @ 2016-02-22 23:01 UTC (permalink / raw)
To: James E.J. Bottomley, Martin K. Petersen, Michael Schmitz,
linux-m68k, linux-scsi
Please ignore this patch. It isn't sufficient to fix the problem. I'll
send another patch that does fix it.
On Tue, 26 Jan 2016, Finn Thain wrote:
> Fixes: 707d62b37fbb ("ncr5380: Fix EH during arbitration and selection")
> Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
>
> ---
> drivers/scsi/NCR5380.c | 2 +-
> drivers/scsi/atari_NCR5380.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> Index: linux/drivers/scsi/NCR5380.c
> ===================================================================
> --- linux.orig/drivers/scsi/NCR5380.c 2016-01-26 13:31:10.000000000 +1100
> +++ linux/drivers/scsi/NCR5380.c 2016-01-26 13:31:10.000000000 +1100
> @@ -2337,7 +2337,7 @@ static int NCR5380_abort(struct scsi_cmn
> dsprintk(NDEBUG_ABORT, instance,
> "abort: removed %p from disconnected list\n", cmd);
> cmd->result = DID_ERROR << 16;
> - if (!hostdata->connected)
> + if (!hostdata->connected && !hostdata->selecting)
> NCR5380_select(instance, cmd);
> if (hostdata->connected != cmd) {
> complete_cmd(instance, cmd);
> Index: linux/drivers/scsi/atari_NCR5380.c
> ===================================================================
> --- linux.orig/drivers/scsi/atari_NCR5380.c 2016-01-26 13:31:10.000000000 +1100
> +++ linux/drivers/scsi/atari_NCR5380.c 2016-01-26 13:31:10.000000000 +1100
> @@ -2532,7 +2532,7 @@ static int NCR5380_abort(struct scsi_cmn
> dsprintk(NDEBUG_ABORT, instance,
> "abort: removed %p from disconnected list\n", cmd);
> cmd->result = DID_ERROR << 16;
> - if (!hostdata->connected)
> + if (!hostdata->connected && !hostdata->selecting)
> NCR5380_select(instance, cmd);
> if (hostdata->connected != cmd) {
> complete_cmd(instance, cmd);
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-22 23:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-26 2:31 [PATCH] ncr5380: Don't re-enter NCR5380_select() when aborting a command Finn Thain
2016-02-22 23:01 ` Finn Thain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox