From: Peter Yao <peter@exavio.com.cn>
To: linux-scsi@vger.kernel.org
Subject: [patch]scsi_error.c@2.4.22, device starved forever
Date: Tue, 26 Aug 2003 14:43:44 +0000 [thread overview]
Message-ID: <3F4B7220.5070008@exavio.com.cn> (raw)
[-- Attachment #1: Type: text/plain, Size: 145 bytes --]
Hi,
When the error handler finish and call scsi_restart_operations, may
forget to mark some devices starved. Patch atached.
Thanks,
Peter Yao
[-- Attachment #2: patch_2.4.22 --]
[-- Type: text/plain, Size: 452 bytes --]
--- linux-2.4.22/drivers/scsi/scsi_error.c Thu Nov 28 23:53:14 2002
+++ /home/peter/scsi_error.c Tue Aug 26 14:35:14 2003
@@ -1262,7 +1262,12 @@
|| (host->host_blocked)
|| (host->host_self_blocked)
|| (SDpnt->device_blocked)) {
- break;
+ if (atomic_read(&SDpnt->device_busy) == 0) {
+ SDpnt->starved = 1;
+ host->some_device_starved = 1;
+
+ }
+ continue;
}
q = &SDpnt->request_queue;
q->request_fn(q);
reply other threads:[~2003-08-26 6:35 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=3F4B7220.5070008@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox