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: 2.5.x why a conditional call to blkdev_dequeue_request?
Date: 07 Apr 2003 23:13:06 -0500	[thread overview]
Message-ID: <1049775188.1749.82.camel@mulgrave> (raw)
In-Reply-To: <20030407204005.A4219@beaverton.ibm.com>

On Mon, 2003-04-07 at 22:40, Patrick Mansfield wrote:
> Why do we conditionally call blkdev_dequeue_request, and yet run the same
> code even if a request is not dequeued? 
> 
> Should we always call blkdev_dequeue_request, and handle
> blk_queue_start_tag() returning != 0 as a bug or a resource limitation?
> 
> In 2.5 scsi_lib.c scsi_request_fn right now we have:
> 
> 	if (!(blk_queue_tagged(q) && (blk_queue_start_tag(q, req) == 0)))
> 		blkdev_dequeue_request(req);
> 
> 	/* then handle the request whether it was dequeued or not */
> 

blk_queue_start_tag dequeues for you.  It's for IDE and other block code
where the request is left in the queue while being processed.  In SCSI
we dequeue regardless of whether we're tagged or not.

James



      reply	other threads:[~2003-04-08  4:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08  3:40 2.5.x why a conditional call to blkdev_dequeue_request? Patrick Mansfield
2003-04-08  4:13 ` 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=1049775188.1749.82.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