From: Tom Yan <tom.t...@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.t...@gmail.com>

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.
-- 
2.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to