From: James Bottomley <James.Bottomley@SteelEye.com>
To: "Bagalkote, Sreenivas" <Sreenivas.Bagalkote@engenio.com>
Cc: "'linux-scsi@vger.kernel.org'" <linux-scsi@vger.kernel.org>,
'Christoph Hellwig' <hch@infradead.org>,
"'hch@lst.de'" <hch@lst.de>,
"Kolli, Neela Syam" <Neela.Kolli@engenio.com>
Subject: RE: [2.4.21] Spurious ABORTs
Date: Tue, 27 Sep 2005 12:00:52 -0500 [thread overview]
Message-ID: <1127840452.4814.49.camel@mulgrave> (raw)
In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E57060CD1DE@exa-atlanta>
On Tue, 2005-09-27 at 12:39 -0400, Bagalkote, Sreenivas wrote:
> >
> >On Tue, 2005-09-27 at 12:18 -0400, Bagalkote, Sreenivas wrote:
> >> When I return SUCCESS to the spurious ABORTs, the systems keeps
> >> running. I am getting aborts for commands that I completed
> >as early as
> >> 60+ seconds ago. Could somebody please tell me what in SCSI
> >layer can
> >> cause it to do this?
> >
> >Well, 2.4 is somewhat more eccentric than 2.6 as far as SCSI goes.
> >However, I can guess about this one. If a command is
> >completed after it times out, you still get error handling for
> >it (this is actually still true in 2.6). When the system
> >becomes aware of a need for error handling it quiesces the
> >driver (i.e. waits for all outstanding commands to time out or
> >return) before beginning the eh thread. So, if a bunch of
> >commands are failing, you can complete one that has already
> >timed out and still receive an ABORT for it ages afterwards.
> >
> >James
>
> Thanks. But 60 seconds after the completion?! In any case, I don't have
the sd timeout is 30s; I can certainly construct theoretical situations
where you'd not get an abort until 60s after completion, yes.
> an abort handler in my release driver. Only reset handler. If I see that
> I don't have any pending commands with me, I simply return SUCCESS from
> the reset handler. Is this the correct way of doing this? (Returning
> FAILED would cause the controller to be marked offline).
As long as you actually do a reset, yes. The mid-layer's next actions
will be to try a test unit ready, and if that succeeds to retry the
command.
James
next prev parent reply other threads:[~2005-09-27 17:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-27 16:39 [2.4.21] Spurious ABORTs Bagalkote, Sreenivas
2005-09-27 17:00 ` James Bottomley [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-27 19:48 Bagalkote, Sreenivas
2005-09-27 20:10 ` James Bottomley
2005-09-27 17:10 Bagalkote, Sreenivas
2005-09-27 17:18 ` James Bottomley
2005-09-27 16:18 Bagalkote, Sreenivas
2005-09-27 16:32 ` James Bottomley
2005-09-23 21:28 Bagalkote, Sreenivas
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=1127840452.4814.49.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=Neela.Kolli@engenio.com \
--cc=Sreenivas.Bagalkote@engenio.com \
--cc=hch@infradead.org \
--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