- Subject: Re: PATCH: usb-storage-set-last-sector-bug-flag.patch
- From: Greg KH <greg@xxxxxxxxx>
- Date: Thu, 24 Jan 2008 09:21:58 -0800
- Cc: USB development list <linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx>, linux-scsi@xxxxxxxxxxxxxxx, USB Storage list <usb-storage@xxxxxxxxxxxxxxxxxxxxxxxx>, linux-usb@xxxxxxxxxxxxxxx, David Brown <usb-storage2@xxxxxxxxxx>, James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>, Hans de Goede <j.w.r.degoede@xxxxxx>, Boaz Harrosh <bharrosh@xxxxxxxxxxx>, Matthew Dharm <mdharm-scsi@xxxxxxxxxxxxxxxxxx>
- In-reply-to: <4798C5B4.1000208@xxxxxxxxxxxxxxxxx>
- User-agent: Mutt/1.5.16 (2007-06-09)
On Thu, Jan 24, 2008 at 06:07:00PM +0100, Stefan Richter wrote:
> Greg KH wrote:
> > I just am worried that we are
> > now suddenly keeping access from the last sector for devices that
> > currently did work just fine.
>
> This new workaround doesn't prevent access to the last sector. It only
> breaks up a multi-sector access which would also reach the last sector
> into several (two? I'm too lazy to look back in the mail thread)
> accesses, in order to access the last sector in a dedicated
> single-sector access.
>
> So that's very differently to the fix-capacity workaround. The
> fix-capacity workaround manipulates the READ CAPACITY parameter data.
> Therefore the fix-capacity workaround is unsafe for non-buggy devices.
>
> The last-sector-(access-)bug workaround _only_ modifies the command
> stream which is sent to the device. A dangerous command is replaced by
> equivalent safe commands. These commands are luckily safe for _all_
> devices, buggy and non-buggy ones. The only cost of this workaround is
> (1.) the code, (2.) the runtime/ bandwidth/ latency overhead for
> accesses which reach the last sector.
Ok, thanks for explaining it better. I have no objection to this change
anymore.
thanks,
greg k-h
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[Home]
[Video for Linux]
[Photo]
[Yosemite Forum]
[Yosemite Photos]
[Video Projectors]
[PDAs]
[Hacking TiVo]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Devices]
[Big List of Linux Books]
[Free Dating]