Re: usb-storage, error reading the last 8 sectors, regression in 2.6.25-rc7

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Boaz Harrosh <bharrosh@...>
Cc: Alan Stern <stern@...>, Oliver Neukum <oliver@...>, Sergey Dolgov <solkaa@...>, <linux-kernel@...>, <linux-usb@...>
Date: Tuesday, April 1, 2008 - 4:24 pm

Boaz Harrosh wrote:

Reverting the patch is easy, edit drivers/usb/storage/scsiglue.c and remove the 
following line:
"                sdev->last_sector_bug = 1;"

Which should be close to line 193 (it is 193 in my source tree, but thats a bit 
stale).


If the splitting of the request is the cause, yes then it looks like that.


I'm pretty sure the last sector must only be read by itself bug (for lack of a 
better name) is present under windows too, but won't be triggered as windows 
normally doesn't access the last sector, where as various pieces of Linux 
routinely probe the end of the disk, for detection of exotic partition types/ 
disklabes.etc.


Correct I wrote the split up requests which touch the last sector changes to 
the scsi disk handling, and a seperate patch to always set the flag which 
enables the splitting for usb disks.


I just tried and I'm afraid not, an 8 sector read which includes at the last 
sector completely kills the device, no other transfers to / from the device 
will work until the sdcard is removed and reinserted (the troublesome device is 
a card reader build into a multi function printer, one gets what one pays for).

Regards,

Hans
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: usb-storage, error reading the last 8 sectors, regressio..., Hans de Goede, (Tue Apr 1, 4:24 pm)