public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Andreas Herrmann <AHERRMAN@de.ibm.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [Patch] dont block device on QUEUE_FULL for last command
Date: 04 Aug 2003 11:05:40 -0500	[thread overview]
Message-ID: <1060013144.2008.28.camel@fuzzy> (raw)
In-Reply-To: <OF122C5E1B.D9D616EB-ONC1256D78.0050C1BC@de.ibm.com>

On Mon, 2003-08-04 at 10:42, Andreas Herrmann wrote:
> I observed the following problem:
> A device was marked as blocked after a QUEUE_FULL status code
> was returned for the last scsi command for a device.
> And there's a snag to it -- because no further commands are pending
> for that device, the device is not set unblocked anymore.
> 
> Solution is:
> Do not block the device/adapter if getting QUEUE_FULL status code
> for the last pending command of that device/adapter, but retry
> the command.

This looks like 2.4 code, right?

The problem was fixed long ago in 2.5.

The fix you propose for 2.4 isn't optimal (although it is what 2.4 does
for the busy case) because the mid-layer will bang the drive in a tight
loop until it can accept the command.

You could try backporting the 2.5 fix.  What we do there is to plug the
queue and then count down (from 7 for host busy or 3 from device busy)
replugging each time.  That gives a non-busy delay which is directly
proportional to the I/O pressure in the system.

James



  parent reply	other threads:[~2003-08-04 16:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 15:42 [Patch] dont block device on QUEUE_FULL for last command Andreas Herrmann
2003-08-04 15:48 ` Jeff Garzik
2003-08-05  6:07   ` Jens Axboe
2003-08-11  8:45     ` Kurt Garloff
2003-08-04 16:05 ` James Bottomley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-05  7:15 Andreas Herrmann
2003-08-05  7:26 Andreas Herrmann
2003-08-05 13:08 ` Jeff Garzik

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=1060013144.2008.28.camel@fuzzy \
    --to=james.bottomley@steeleye.com \
    --cc=AHERRMAN@de.ibm.com \
    --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