From: Douglas Gilbert <dougg@torque.net>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Dave Olien <dmo@osdl.org>, Tim Pepper <tpepper@gmail.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Question about Request Sense case in scsi_lib.c
Date: Wed, 13 Oct 2004 12:10:21 +1000 [thread overview]
Message-ID: <416C8E8D.7050000@torque.net> (raw)
In-Reply-To: <1097601199.2044.91.camel@mulgrave>
James Bottomley wrote:
> On Tue, 2004-10-12 at 11:59, Dave Olien wrote:
>
>>Thanks for the feedback. Yes, Automatic volume transfer is on, and I
>>was expecting there'd be poor performance as a result. I just
>>didn't expect to get IO errors. The odd thing is that the "bus reset"
>>leads to the SCSI request being requeued. But every once in a while,
>>the requeue fails with errors and the request is failed. I'll look at
>>these cases a little more closely, try to understand why the requeues fail.
>
>
> Hang on a minute ... if you're ping pong'ing the drives using AVT, those
> transfers take time to achieve. The device is probably returning UNIT
> ATTENTION, NOT_READY while the transfer is in progress. This is
> probably the source of the requeue.
UNIT ATTENTION and NOT READY are both sense keys so a
device can't yield both on one command. However you may be
on the right track as there is an ever increasing number of
reasons a device could issue a UNIT ATTENTION. [See SPC-3
rev 21 and I believe these ASC codes (and all their associated
ASCQ codes) occur with a sense key of UNIT ATTENTION:
0x28, 0x29, 0x2a, 0x3f, 0x5b/0x1 and 0x5d.]
Unlikely in this case but a sense key of UNIT ATTENTION
(or perhaps RECOVERED ERROR) with an additional sense
of "Hardware impending failure, seek error rate too high"
may slip by without even a log entry.
> As for the error, I still don't understand that, but it looks like
> something went wrong in setting up or tearing down the dma mapping, so
> that it was incorrectly described when this happened a second time.
I hope to address the code in the scsi_io_completion() error/warning
processing paths with the descriptor_sense cleanup. There seems to
be a missing scsi_print_sense() call on the UNIT ATTENTION path.
Dave, does your log show a bus error (ASC/ASCQ=0x29/0x2) has occurred?
Doug Gilbert
next prev parent reply other threads:[~2004-10-13 3:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 0:00 Question about Request Sense case in scsi_lib.c Dave Olien
[not found] ` <eada2a07041012092973d35415@mail.gmail.com>
2004-10-12 16:31 ` Tim Pepper
2004-10-12 16:59 ` Dave Olien
2004-10-12 17:13 ` James Bottomley
2004-10-12 17:59 ` Dave Olien
2004-10-12 20:13 ` Patrick Mansfield
2004-10-12 20:44 ` Dave Olien
2004-10-13 2:10 ` Douglas Gilbert [this message]
2004-10-13 17:56 ` Dave Olien
[not found] <53CF1076699CD711B7DD0002A51363F1072A6E3A@exw-ks.ks.lsil.com>
2004-10-13 21:46 ` 'Dave Olien'
2004-10-13 21:56 ` James Bottomley
2004-10-13 22:09 ` 'Dave Olien'
2004-10-14 17:52 ` 'Dave Olien'
2004-10-14 18:05 ` James Bottomley
2004-10-14 20:39 ` James Bottomley
2004-10-14 0:30 ` Douglas Gilbert
2004-10-14 6:49 ` Lan Tran
2004-10-14 15:25 ` 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=416C8E8D.7050000@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@SteelEye.com \
--cc=dmo@osdl.org \
--cc=linux-scsi@vger.kernel.org \
--cc=tpepper@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.