]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/scsi/sd.c
[SCSI] sd: Use SCSI read/write(16) with > 32-bit LBA drives
authorJason J. Herne <hernejj@gmail.com>
Wed, 14 Nov 2012 22:03:22 +0000 (17:03 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 27 Nov 2012 05:00:38 +0000 (09:00 +0400)
commit53ad570be625045aba3ae7de8d82401364c655e1
tree3034c3094a3ae501b0b53ebd2149fd93f4d9b5df
parent0b4334473d48aa18e8448f9f718f1dcd0398c550
[SCSI] sd: Use SCSI read/write(16) with > 32-bit LBA drives

Force large capacity (> 0xFFFFFFFF blocks) drives to use READ/WRITE(16) instead
of READ/WRITE(10). Some(most/all?) USB enclosures do not like READ(10) commands
when a large capacity drive is installed. This issue was reported and discussed
here: http://marc.info/?l=linux-usb&m=135247705222324

Signed-off-by: Jason J. Herne <hernejj@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sd.c
include/scsi/scsi_device.h