Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 15:46:59 -0700
From:      "Kenneth D. Merry" <ken@freebsd.org>
To:        Chuck Tuffli <chuck@tuffli.net>
Cc:        freebsd-scsi <freebsd-scsi@freebsd.org>
Subject:   Re: [patch] CTL should check condition INQUIRY with invalid LUN
Message-ID:  <20120307224659.GA40869@nargothrond.kdm.org>
In-Reply-To: <CAM0tzX31HRoWkoeGBY0kOz_25UxnfUvkD-ptJ3USHOzfoWGxSw@mail.gmail.com>
References:  <CAM0tzX1=OrfYK3za9s5xkiUDmnO=maHPbhmyv0k50y=6-WTT9w@mail.gmail.com> <20120306001731.GA38229@nargothrond.kdm.org> <CAM0tzX2y=Nh7MjM%2BDhZJu-CPYqUhvBsJCVjPsagTXmR3v_2_Hw@mail.gmail.com> <20120307202200.GA23825@nargothrond.kdm.org> <CAM0tzX1a1-Hen=tXpmkbWdac0xtP=AnYHrrupqNT2uVx_4AzOw@mail.gmail.com> <20120307222546.GA38581@nargothrond.kdm.org> <CAM0tzX31HRoWkoeGBY0kOz_25UxnfUvkD-ptJ3USHOzfoWGxSw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 07, 2012 at 14:40:05 -0800, Chuck Tuffli wrote:
> On Wed, Mar 7, 2012 at 2:25 PM, Kenneth D. Merry <ken@freebsd.org> wrote:
> > On Wed, Mar 07, 2012 at 14:17:14 -0800, Chuck Tuffli wrote:
> >> On Wed, Mar 7, 2012 at 12:22 PM, Kenneth D. Merry <ken@freebsd.org> wrote:
> >> > On Tue, Mar 06, 2012 at 16:30:22 -0800, Chuck Tuffli wrote:
> >> ...
> >> >> Linux does issue REPORT LUNs, but most of the time, this gets
> >> >> check-conditioned with illegal request, overlapped commands attempted.
> >> >
> >> > Hmm, that sounds suspicious. ?What is the exact ASC/ASCQ reported?
> >> >
> >> > Are you setting the tag_action field in the ATIO that gets sent to CTL?
> >> > Only one untagged command is allowed at a time.
> >>
> >> Ooops, no I wasn't. Fixed that and the illegal request check condition
> >> has gone away (tnx!)
> >
> > Ahh, cool. ?So is Linux probing things properly now?
> 
> No, the probing is messed up unless I change the inquiry device
> qualifier/type to 0x3/0x1f, but the spurious check conditions are now
> gone.

So that means it is sending a REPORT LUNS, but ignoring the results?

If it were using the results to decide which LUNs to probe, then it
wouldn't be sending inquiry commands to unsupported LUNs.

Ken
-- 
Kenneth Merry
ken@FreeBSD.ORG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120307224659.GA40869>