public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Patrick Mansfield <patmans@us.ibm.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [RFC][PATCH] scsi-misc-2.5 software enqueue when can_queue reached
Date: 06 Mar 2003 12:04:04 -0600	[thread overview]
Message-ID: <1046973846.1746.30.camel@mulgrave> (raw)
In-Reply-To: <20030306094156.A23231@beaverton.ibm.com>

On Thu, 2003-03-06 at 11:41, Patrick Mansfield wrote:
> Such a solution complicates moving to a per-device queue lock - we need a
> per-host lock while pulling off the restart list, and we need a
> per-queue-lock prior to calling __blk_run_queue(); but when starving in
> the scsi_request_fn(), we have a per-queue-lock and need the per-host lock
> to add to the restart list. So we have to allow dropping a lock in both
> cases without leading to a hung requeset queue.

Actually, I don't think it does. Any driver that can truly have a per
device lock can't have a fixed size pool of resources that device
requests are competing for (otherwise it would need a host lock to
access these resources), thus can_queue should always be set to a number
much greater than the aggregate of the local device queue depths (we'd
need a comment in the code to this effect).

Do we actually have any LLDs in the tree today that can benefit from a
device based locking approach?  (i.e. they must manage their resource
pools on a device basis and also have a mailbox scheme that doesn't
require host based locking).

James



      reply	other threads:[~2003-03-06 18:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-28 19:19 [RFC][PATCH] scsi-misc-2.5 software enqueue when can_queue reached Patrick Mansfield
2003-03-02  8:57 ` Christoph Hellwig
2003-03-02 18:15   ` Patrick Mansfield
2003-03-03 15:52   ` Randy.Dunlap
2003-03-03 18:17   ` Luben Tuikov
2003-03-04  1:11     ` Andrew Morton
2003-03-04  4:49       ` Luben Tuikov
2003-03-02 20:57 ` Luben Tuikov
2003-03-02 21:08   ` Luben Tuikov
2003-03-03 20:52   ` Patrick Mansfield
2003-03-03 22:40     ` Luben Tuikov
2003-03-03 23:41       ` Patrick Mansfield
2003-03-04  5:48         ` Luben Tuikov
2003-03-05  3:02 ` James Bottomley
2003-03-05 18:43   ` Patrick Mansfield
2003-03-06 15:57     ` James Bottomley
2003-03-06 17:41       ` Patrick Mansfield
2003-03-06 18:04         ` 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=1046973846.1746.30.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --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