From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] SCSI: make use of the residue value
Date: Fri, 07 Mar 2008 18:17:55 -0600 [thread overview]
Message-ID: <1204935475.2889.28.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0802261113260.4447-100000@iolanthe.rowland.org>
On Wed, 2008-02-27 at 15:25 -0500, Alan Stern wrote:
> On 20 Feb 2008, Alan Stern wrote:
>
> > This patch (as1036) causes the SCSI midlayer to take into account the
> > residue value provided by some low-level drivers. There's at least
> > one situation (USB mass storage with the Bulk-only transport) where
> > the specification states that it is permissible for a device to
> > indicate some of the data was not transferred correctly merely by
> > setting the residue value, without issuing a Check Condition.
>
> After a week, there hasn't been any feedback on this patch. Has it
> been accepted? Is there anything wrong with it? Is it still on a
> "to-look-at" queue?
OK, I ran it through its paces, but it fails in testing. A very fun
failure, actually, some disks fail to appear with udev.
The reason is they return a residue from the VPD inquiry. What your
patch actually causes is the block layer to resubmit the command with
the residue and triggers an overrun error (because the length in the
command is now much longer than the data buffer).
The bottom line is that this patch won't work with variable length
commands like inquiry that always return a residue.
James
next prev parent reply other threads:[~2008-03-08 0:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 20:25 [PATCH] SCSI: make use of the residue value Alan Stern
2008-03-08 0:17 ` James Bottomley [this message]
2008-03-08 16:22 ` Alan Stern
2008-03-08 17:20 ` James Bottomley
2008-03-08 22:35 ` Alan Stern
2008-03-09 0:24 ` James Bottomley
2008-03-09 3:05 ` Alan Stern
2008-03-09 14:44 ` James Bottomley
2008-03-09 19:13 ` Alan Stern
2008-03-09 19:34 ` James Bottomley
2008-03-09 21:50 ` Alan Stern
2008-03-10 13:42 ` Boaz Harrosh
2008-03-10 14:11 ` Alan Stern
2008-03-10 14:31 ` Boaz Harrosh
2008-03-10 14:50 ` Alan Stern
2008-05-23 21:00 ` Alan Stern
-- strict thread matches above, loose matches on Subject: below --
2008-02-20 21:26 Alan Stern
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=1204935475.2889.28.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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