From: James Bottomley <James.Bottomley@steeleye.com>
To: Luben Tuikov <tluben@rogers.com>
Cc: Jeff Garzik <jgarzik@pobox.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: requeuing a Scsi_Cmnd?
Date: 12 May 2003 15:30:25 -0500 [thread overview]
Message-ID: <1052771428.2093.94.camel@mulgrave> (raw)
In-Reply-To: <3EBFE408.4010607@rogers.com>
On Mon, 2003-05-12 at 13:12, Luben Tuikov wrote:
> Uuuuh... Shouldn't this be fixed?
Not really, its design behaviour. BUSY or QUEUE_FULL return means the
actual device couldn't accept the command, so we push back on the block
queue and suspend until a returning I/O frees the queue. DID_BUS_BUSY
indicates transient failures in the host side which are eligible for
immediate requeueing
> The problem with this is that on BUSY, the LLDD _may_ get the task
> which got this condition out of order... Furthermore, there's no
This would be why we don't support barriers.
> such thing as BUS BUSY anymore, it's an SPI left over. In case
> where the transport is unavailable, a service response of
> SERVICE DELIVERY OR TARGET FAILURE should be returned*.
> Currently SCSI Core has no facility to return a ``service response''.
The service response are what the DID_ attributes are about. At the end
of the day, though, the mid layer will either
1. Fail the command
2. retry immediately, or
3. retry after another command returns.
That's what the large set of case statements in
scsi_error.c:scsi_decide_disposition() is about.
James
next prev parent reply other threads:[~2003-05-12 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-11 20:25 requeuing a Scsi_Cmnd? Jeff Garzik
2003-05-12 5:43 ` Luben Tuikov
2003-05-12 14:44 ` James Bottomley
2003-05-12 18:12 ` Luben Tuikov
2003-05-12 20:30 ` James Bottomley [this message]
2003-05-13 0:20 ` Jeff Garzik
2003-10-30 23:48 ` Andre Hedrick
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=1052771428.2093.94.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=jgarzik@pobox.com \
--cc=linux-scsi@vger.kernel.org \
--cc=tluben@rogers.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