]> git.baikalelectronics.ru Git - kernel.git/commit
sd: use READ_16 or WRITE_16 when transfer length is greater than 0xffff
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 2 Jun 2014 13:56:47 +0000 (22:56 +0900)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:07:30 +0000 (22:07 +0200)
commit2ef4e5098fa8fb7c2b8504c852adcb17f017c0c7
treee1433727f4e9787323f16e774219135cb0b43b51
parent99a8d4cf069108f84af54259706277e6dcdb974b
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>
drivers/scsi/sd.c