From: "Justin T. Gibbs" <gibbs@scsiguy.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Christoph Hellwig <hch@lst.de>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] allow drivers to hook into watchdog timeout
Date: Tue, 10 Feb 2004 12:44:19 -0700 [thread overview]
Message-ID: <2520610000.1076442259@aslan.btc.adaptec.com> (raw)
In-Reply-To: <1076438507.2165.38.camel@mulgrave>
> If you need to stall a command after you've accepted it by returning
> zero from queuecommand, you return it to the mid-layer with status
> either BUSY or QUEUE_FULL.
BUSY and QUEUE_FULL status have particular meanings when associated
with an SCSI peripheral. Using them for this purpose will only confuse
the mid-layer into taking unwarranted action, like trying to throttle
the queue depth. The times that I want to use this have nothing to
do with BUSY or QUEUE_FULL in their SCSI sense.
>> 1) A counting "device frozen semaphore" that the LLD or the mid-layer
>> can decrement when I/O to this device needs to be halted.
>
> If you really need to halt everything after returning BUSY, then the
> scsi_block_requests()/scsi_unblock_requests() can be used for this.
scsi_block_requests() blocks the whole controller up. I only want
and need to block the transactions going to a particular lun.
>> 2) An explicit scsi cmd code indicating "requeue this request - don't
>> attempt recovery" for commands that are in internal queues that were
>> innocently affected by a recovery or transport event.
>
> commands in the controller issue queue innocently affected by recovery
> should be returned to the mid-layer with DID_RESET, where they will be
> reissued.
They will only be issued up to their command retry count which may be zero
for certain commands. This may also confuse the peripheral or mid-layer
drivers into believing that a unit attention condition is expected and
should be ignored. The commands that were affected by the recovery action
should be marked accordingly, but marking the commands that are still waiting
on the sidelines is the equivalent of a drive-by-shooting.
You've complained in the past about how the aic7xxx and aic79xx drivers
work around the mid-layer to get stuff to work correctly. Above you are
asking for the LLD to continue to "lie" to the mid-layer instead of actually
fixing the problem. What you are proposing here *loses* critical
information for the mid-layer and the perihperal drivers. How is this
different or better than the other "lies" the current aic7xxx and aic79xx
drivers tell to convince the mid-layer to do the right thing? I thought
the intention was to fix the mid-layer so that drivers could avoid these
kinds of things.
--
Justin
next prev parent reply other threads:[~2004-02-10 19:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-20 13:20 [PATCH] allow drivers to hook into watchdog timeout Christoph Hellwig
2004-01-20 15:53 ` Mike Anderson
2004-01-20 16:00 ` Christoph Hellwig
2004-01-20 16:47 ` Mike Anderson
2004-01-22 13:59 ` Christoph Hellwig
2004-01-22 14:27 ` Justin T. Gibbs
2004-01-20 17:00 ` Brian King
2004-01-20 18:06 ` Christoph Hellwig
2004-02-10 16:34 ` Justin T. Gibbs
2004-02-10 16:42 ` James Bottomley
2004-02-10 17:47 ` Justin T. Gibbs
2004-02-10 18:41 ` James Bottomley
2004-02-10 19:44 ` Justin T. Gibbs [this message]
2004-02-10 20:05 ` James Bottomley
2004-02-10 20:26 ` Justin T. Gibbs
2004-02-10 22:47 ` Clay Haapala
2004-02-11 20:05 ` James Bottomley
2004-02-12 0:15 ` Justin T. Gibbs
2004-02-12 14:42 ` James Bottomley
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=2520610000.1076442259@aslan.btc.adaptec.com \
--to=gibbs@scsiguy.com \
--cc=James.Bottomley@SteelEye.com \
--cc=hch@lst.de \
--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