]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: increase upper limit for max_sectors
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 2 Jun 2014 13:56:48 +0000 (22:56 +0900)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:07:30 +0000 (22:07 +0200)
commitecd706778d8a198bd6b9f5bf0cf1924907c06112
treedc961ca6a6098eac84e132abb09db687c700e87b
parent2ef4e5098fa8fb7c2b8504c852adcb17f017c0c7
scsi: increase upper limit for max_sectors

max_sectors in struct Scsi_Host specifies maximum number of sectors
allowed in a single SCSI command.  The data type of max_sectors is
unsigned short, so the maximum transfer length per SCSI command is
limited to less than 256MB in 4096-bytes sector size. (0xffff * 4096)

This commit increases the SCSI mid level's limitation for max_sectors
upto the block layer's limitation for max_hw_sectors by extending the
data type of max_sectors in struct Scsi_Host and scsi_host_template,
so that SCSI lower level drivers can specify more than 0xffff.

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>
include/scsi/scsi_host.h