From: James Bottomley <James.Bottomley@steeleye.com>
To: willy@debian.org
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: [PATCH] fix problem in sym2 auto request sense
Date: 21 Mar 2004 10:59:13 -0500 [thread overview]
Message-ID: <1079884753.2045.20.camel@mulgrave> (raw)
sym2 currently returns DID_ERROR if its auto request sense fails for
some reason. This is wrong because it leaves a contingent allegiance
condition on the device and it will ever after return BUSY to all
commands.
I tripped this in the somewhat artificial situation of two wide devices
connected over a narrow bus (the DATA phase of the request sense can
thus never complete successfully).
The solution is to kick the device very hard in this rare scenario.
James
===== drivers/scsi/sym53c8xx_2/sym_glue.c 1.44 vs edited =====
--- 1.44/drivers/scsi/sym53c8xx_2/sym_glue.c Sat Mar 20 16:00:09 2004
+++ edited/drivers/scsi/sym53c8xx_2/sym_glue.c Sun Mar 21 09:54:45 2004
@@ -384,6 +384,12 @@
}
#endif
} else {
+ /* Error return from our internal request
+ * sense. This is bad: we must clear the
+ * contingent allegiance condition otherwise
+ * the device will always return BUSY. Use a
+ * big stick */
+ sym_reset_scsi_bus(np, 1);
cam_status = DID_ERROR;
}
} else if (cp->host_status == HS_COMPLETE) /* Bad SCSI status */
reply other threads:[~2004-03-21 15:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1079884753.2045.20.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=willy@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox