From: Peter Yao <peter@exavio.com.cn>
To: linux-scsi@vger.kernel.org
Subject: [patch] scsi_lib.c error handler patch
Date: Fri, 20 Jun 2003 17:55:09 +0000 [thread overview]
Message-ID: <3EF34A7D.2000701@exavio.com.cn> (raw)
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
i found a bug in redhat 7.3's kernel source, which cause some failed
commands cannot be passed to the scsi error handler thread. I searched
this list hastily and did not find a fix. i don't know whether it is in
the latest kernel source, just a remind. :-)
Peter Yao
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 533 bytes --]
--- drivers/scsi/scsi_lib.c Thu Apr 18 10:50:34 2002
+++ /tmp/scsi_lib.c Fri Jun 20 17:34:10 2003
@@ -423,6 +423,11 @@
* the front of the queue, and goose the queue again.
*/
scsi_queue_next_request(q, SCpnt);
+ /* Don't forget to wake up error handler */
+ if (SCpnt->host->in_recovery && !SCpnt->host->eh_active &&
+ atomic_read(&SCpnt->host->host_busy) == SCpnt->host->host_failed) {
+ up(SCpnt->host->eh_wait);
+ }
return SCpnt;
}
/*
reply other threads:[~2003-06-20 9:41 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=3EF34A7D.2000701@exavio.com.cn \
--to=peter@exavio.com.cn \
--cc=linux-scsi@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.