diff mbox

[1/1] scsi: bump SCSI_DEFAULT_MAX_SECTORS to SD_DEF_XFER_BLOCKS

Message ID 573beec3.1314620a.54ed4.4ad4@mx.google.com (mailing list archive)
State Deferred, archived
Headers show

Commit Message

Tom Yan May 18, 2016, 4:25 a.m. UTC
From: Tom Yan <tom.ty89@gmail.com>

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 <tom.ty89@gmail.com>
diff mbox

Patch

diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index fcfa3d7..f3c43bd 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -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.