scsi: bump SCSI_DEFAULT_MAX_SECTORS to SD_DEF_XFER_BLOCKS
PATCH 1/1 scsi: bump SCSI_DEFAULT_MAX_SECTORS to SD_DEF_XFER_BLOCKS
From: Tom Yan <[email protected]>
As of commit ca369d51b3e1649be4a72addd6d6a168cfb3f537, max_sectors (rw_max) of a scsi disk can be as high as SD_DEF_XFER_BLOCKS.
Therefore, bump SCSI_DEFAULT_MAX_SECTORS to 65535 to make hosts that do not have max_sectors set in their templates benefit from the commit.
Hosts that are not capable of handling SCSI_DEFAULT_MAX_SECTORS should have max_sectors set in their templates (like usb-storage does in scsiglue.c).
Signed-off-by Tom Yan <[email protected]>
include/scsi/scsi_host.h +1 -1
@@ -383,7 +383,7 @@ struct scsi_host_template {* maximum, and may be over the transfer limits allowed for * individual devices (e.g. 256 for SCSI-1). */ -#define SCSI_DEFAULT_MAX_SECTORS 1024 +#define SCSI_DEFAULT_MAX_SECTORS 65535/* * True if this host adapter can make good use of linked commands.
Signature · 1 line
2.8.2