aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2014-06-02 22:56:47 +0900
committerChristoph Hellwig <hch@lst.de>2014-07-17 22:07:30 +0200
commite430cbc8bbd779454516467b2947a97b4003c081 (patch)
treee1433727f4e9787323f16e774219135cb0b43b51 /include/scsi
parentsg: prevent integer overflow when converting from sectors to bytes (diff)
downloadlinux-dev-e430cbc8bbd779454516467b2947a97b4003c081.tar.xz
linux-dev-e430cbc8bbd779454516467b2947a97b4003c081.zip
sd: use READ_16 or WRITE_16 when transfer length is greater than 0xffff
This change makes the scsi disk driver handle the requests whose transfer length is greater than 0xffff with READ_16 or WRITE_16. However, this is a preparation for extending the data type of max_sectors in struct Scsi_Host and scsi_host_template. So, it is impossible to happen this condition for now, because SCSI low-level drivers can not specify max_sectors greater than 0xffff due to the data type limitation. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions