From: Lan Tran <transter@gmail.com>
To: dougg@torque.net
Cc: "Qi, Yanling" <yanling.qi@engenio.com>, Dave Olien <dmo@osdl.org>,
James Bottomley <james.bottomley@steeleye.com>,
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 23:49:09 -0700 [thread overview]
Message-ID: <ac71172a0410132349715aa9b4@mail.gmail.com> (raw)
In-Reply-To: <416DC8A4.6070107@torque.net>
Don't know if this will help or hinder, but I was also getting the
same error for a multipathing block layer driver we have been working
on:
Incorrect number of segments after building list
counted 2, received 1
req nr_sec 0, cur_nr_sec 8
And it was due to the fact that when a bio is sent down to the
mid-layer, it would come back with another bio chained to it, so when
the original bio was retried, the number of segments that were mapped
(i.e. 2, one from each bio) did not match the value stored in
cmd->use_sg (i.e. 1). I still haven't figured out why chained bios
from indepedent IO requests are returned from the mid-layer ... but
may be a similar issue you're seeing here?
Lan
On Thu, 14 Oct 2004 10:30:28 +1000, Douglas Gilbert <dougg@torque.net> wrote:
> Qi, Yanling wrote:
> > The check-condition (06h/8Bh/02h) is Engenio's vendor specific UA. It
> > means "Quiescence Is In Progress" while transferring a volume from one
> > controller to the other. When the volume transfer (cache sync and
> > bookkeeping) is completed, the device server will start accept IO requests.
> >
> > Yanling
>
> Thanks for that information.
>
> So in the future when we print a SK/ASC/ASCQ sequence to log
> we should note:
> a) if (asc >= 0x80) then it is vendor specific
> b) if (ascq >= 0x80) then it is a vendor specific qualification
> of a standard asc value
>
> That should alert diligent users to look at the vendor's product
> manual or to contact the vendor.
>
> Doug Gilbert
>
>
>
> > -----Original Message-----
> > From: linux-scsi-owner@vger.kernel.org
> > [mailto:linux-scsi-owner@vger.kernel.org]On Behalf Of Dave Olien
> > Sent: Wednesday, October 13, 2004 12:57 PM
> > To: Douglas Gilbert
> > Cc: James Bottomley; Tim Pepper; SCSI Mailing List
> > Subject: Re: Question about Request Sense case in scsi_lib.c
> >
> >
> >
> > Here's what seeing out of the SCSI log:
> >
> > command = Write (10) 00 00 00 84 00 00 04 00 00
> > Current sdx: sense key Unit Attention
> > ASC=8b ASCQ= 2
> > P<6>scsi <2:0:2:3> done SUCCESS 2 scsi2 : destination target 2,
> > lun 3
> > command = Write (10) 00 00 00 88 00 00 04 00 00
> > Current sdx: sense key Unit Attention
> > ASC=8b ASCQ= 2
> > P<6>scsi <2:0:2:0> done SUCCESS 2 scsi2 : destination target 2,
> > lun 0
> > command = Write (10) 00 00 00 00 48 00 04 00 00
> > Current sdu: sense key Unit Attention
> > ASC=8b ASCQ= 2
> > P<3>Incorrect number of segments after building list
> > counted 11, received 5
> > req nr_sec 1024, cur_nr_sec 8
> >
> >
> > On Wed, Oct 13, 2004 at 12:10:21PM +1000, Douglas Gilbert wrote:
> > > 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
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2004-10-14 6:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <53CF1076699CD711B7DD0002A51363F1072A6E3A@exw-ks.ks.lsil.com>
2004-10-13 21:46 ` Question about Request Sense case in scsi_lib.c '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 [this message]
2004-10-14 15:25 ` James Bottomley
2004-10-12 0:00 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
2004-10-13 17:56 ` Dave Olien
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=ac71172a0410132349715aa9b4@mail.gmail.com \
--to=transter@gmail.com \
--cc=dmo@osdl.org \
--cc=dougg@torque.net \
--cc=james.bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=tpepper@gmail.com \
--cc=yanling.qi@engenio.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.