Re: [PATCH] scsi: sd: Use READ(16) when reading block zero on large capacity disks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 04, 2024 at 10:45:01AM -0400, Martin K. Petersen wrote:
> Commit 321da3dc1f3c ("scsi: sd: usb_storage: uas: Access media prior
> to querying device properties") triggered a read to LBA 0 before
> attempting to inquire about device characteristics. This was done
> because some protocol bridge devices will return generic values until
> an attached storage device's media has been accessed.
> 
> Pierre Tomon reported that this change caused problems on a large
> capacity external drive connected via a bridge device. The bridge in
> question does not appear to implement the READ(10) command.
> 
> Issue a READ(16) instead of READ(10) when a device has been identified
> as preferring 16-byte commands (use_16_for_rw heuristic).
> 
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 321da3dc1f3c ("scsi: sd: usb_storage: uas: Access media prior to querying device properties")
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=218890
> Reported-by: Pierre Tomon <pierretom+12@xxxxx>
> Suggested-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> Tested-by: Pierre Tomon <pierretom+12@xxxxx>
> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
> ---

Thanks a lot, Martin!

Alan Stern




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux