From: James Bottomley <James.Bottomley@steeleye.com>
To: willy@debian.org
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: [PATCH] correct sym2 error handling functions
Date: 21 Mar 2004 10:53:13 -0500 [thread overview]
Message-ID: <1079884395.1757.15.camel@mulgrave> (raw)
The sym2 driver has a nasty thinko in its error handling that looks to
have been present from day one.
The problem is that if it decides that the command it is requested to
handle isn't in its internal queues, it simply returns FAILED. This
means that the eh will offline the device if we get into this state.
It's very easy to trip this, because a timed out command may complete
before the eh activates, and the driver would then not find the command
on the bus.
The rules are:
If requested to abort a command that's not present on the bus, you may
return SUCCESS (*not* FAILED), but devices must obey all other error
handler requests (device, bus and host reset) regardless of whether they
find the command or not.
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:47:50 2004
@@ -924,7 +924,6 @@
switch(to_do) {
default:
case SYM_EH_DO_IGNORE:
- goto finish;
break;
case SYM_EH_DO_WAIT:
init_MUTEX_LOCKED(&ep->sem);
reply other threads:[~2004-03-21 15:53 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=1079884395.1757.15.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