From: Patrick Mansfield <patmans@us.ibm.com>
To: Luben Tuikov <luben@splentec.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] 2.5.x use list_head to handle scsi starved request queues
Date: Thu, 20 Mar 2003 20:39:12 -0800 [thread overview]
Message-ID: <20030320203912.A18471@beaverton.ibm.com> (raw)
In-Reply-To: <3E7A1EF5.3050501@splentec.com>; from luben@splentec.com on Thu, Mar 20, 2003 at 03:05:09PM -0500
On Thu, Mar 20, 2003 at 03:05:09PM -0500, Luben Tuikov wrote:
> Patrick Mansfield wrote:
> > This patch (against 2.5 bk on march 18) fixes a few problems with the
> > linux scsi "starved" algorithm.
>
> Patch is fine by me. Comments inlined:
>
> > It uses a list_head per scsi_host to store a list of scsi request queues
> > that were "starved" (they were not able to send IO because of per host
> > limitations).
>
> Then this should probably be your comment for the list variable, inlined:
Okay, the comments are not clear, and don't match the code, I'll remove
them rather than try to get something terse and meaningful.
> > + __blk_run_queue(q);
> > +
> > spin_unlock_irqrestore(q->queue_lock, flags);
> > }
>
> Why don't you *first* hit the ``q'' queue and unlock it and then, i.e. afterwards,
> go over starved_list.
>
> Or you can do it the other way around, i.e. assume prioritization, which I strongly
> advise *against* -- the _caller_ may have handled prioritization already.
I'm trying to give priority to scsi_devices that have not been able to
send IO. If we call __blk_run_queue(q) first, one busy scsi_device could
starve all other scsi_devices on an adapter.
I don't see how the caller can have a priority (across scsi_devices), as
there is no priorizitation across different request queues. The blk layer
should already have prioritized/sorted the request (per request queue).
-- Patrick Mansfield
next prev parent reply other threads:[~2003-03-21 4:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 2:27 [PATCH] 2.5.x use list_head to handle scsi starved request queues Patrick Mansfield
2003-03-20 20:05 ` Luben Tuikov
2003-03-21 4:39 ` Patrick Mansfield [this message]
2003-03-21 20:48 ` Luben Tuikov
2003-03-22 0:50 ` Patrick Mansfield
2003-03-24 17:12 ` Luben Tuikov
2003-03-24 19:29 ` Patrick Mansfield
2003-03-24 20:20 ` Luben Tuikov
2003-03-24 20:25 ` Jens Axboe
2003-03-24 20:38 ` Patrick Mansfield
2003-03-24 21:25 ` Luben Tuikov
2003-03-24 21:56 ` Patrick Mansfield
2003-03-24 22:15 ` Luben Tuikov
2003-03-24 21:30 ` Luben Tuikov
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=20030320203912.A18471@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=James.Bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=luben@splentec.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