From: James Bottomley <James.Bottomley@steeleye.com>
To: Christoph Hellwig <hch@lst.de>,
Patrick Mansfield <patmans@us.ibm.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] fixes and cleanups for the new command allocation code
Date: 05 Feb 2003 09:59:40 -0600 [thread overview]
Message-ID: <1044460782.1773.39.camel@mulgrave> (raw)
In-Reply-To: <1044458540.1807.19.camel@mulgrave>
[-- Attachment #1: Type: text/plain, Size: 70 bytes --]
The patches to block after prepping the command are attached.
James
[-- Attachment #2: tmp.diff --]
[-- Type: text/plain, Size: 1001 bytes --]
===== ./scsi_lib.c 1.65 vs edited =====
--- 1.65/drivers/scsi/scsi_lib.c Tue Feb 4 14:19:00 2003
+++ edited/./scsi_lib.c Wed Feb 5 09:45:45 2003
@@ -814,8 +814,6 @@
SRpnt = (Scsi_Request *) req->special;
if (SRpnt->sr_magic == SCSI_REQ_MAGIC) {
- if (SDpnt->device_busy >= SDpnt->queue_depth)
- return BLKPREP_DEFER;
SCpnt = scsi_get_command(SRpnt->sr_device, GFP_ATOMIC);
if (!SCpnt)
return BLKPREP_DEFER;
@@ -827,8 +825,6 @@
* Now try and find a command block that we can use.
*/
if (!req->special) {
- if (SDpnt->device_busy >= SDpnt->queue_depth)
- return BLKPREP_DEFER;
SCpnt = scsi_get_command(SDpnt, GFP_ATOMIC);
if (unlikely(!SCpnt))
return BLKPREP_DEFER;
@@ -950,6 +946,9 @@
* lower down.
*/
req = elv_next_request(q);
+
+ if (SDpnt->device_busy >= SDpnt->queue_depth)
+ break;
if(SHpnt->host_busy == 0 && SHpnt->host_blocked) {
/* unblock after host_blocked iterates to zero */
prev parent reply other threads:[~2003-02-05 15:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-04 15:23 [PATCH] fixes and cleanups for the new command allocation code Christoph Hellwig
2003-02-04 16:16 ` Patrick Mansfield
2003-02-04 16:51 ` Christoph Hellwig
2003-02-04 17:19 ` Patrick Mansfield
2003-02-04 17:57 ` Luben Tuikov
2003-02-04 18:03 ` Christoph Hellwig
2003-02-04 18:08 ` Luben Tuikov
2003-02-04 18:33 ` James Bottomley
2003-02-04 19:29 ` Christoph Hellwig
2003-02-04 23:03 ` James Bottomley
2003-02-05 1:25 ` Patrick Mansfield
2003-02-05 1:53 ` James Bottomley
2003-02-05 5:15 ` Patrick Mansfield
2003-02-05 15:22 ` James Bottomley
2003-02-05 15:59 ` James Bottomley [this message]
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=1044460782.1773.39.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=hch@lst.de \
--cc=linux-scsi@vger.kernel.org \
--cc=patmans@us.ibm.com \
/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