mesh has no limitations on crossing pages for segments.  Just make
the 65535 byte segment size limit explicit, even if it matches the
current block layer limit.

Signed-off-by: Christoph Hellwig <h...@lst.de>
Tested-by: Paul Mackerras <pau...@ozlabs.org>
---
 drivers/scsi/mesh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c
index ec6940f2fcb3..f3e182eb0970 100644
--- a/drivers/scsi/mesh.c
+++ b/drivers/scsi/mesh.c
@@ -1838,7 +1838,7 @@ static struct scsi_host_template mesh_template = {
        .this_id                        = 7,
        .sg_tablesize                   = SG_ALL,
        .cmd_per_lun                    = 2,
-       .use_clustering                 = DISABLE_CLUSTERING,
+       .max_segment_size               = 65535,
 };
 
 static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
-- 
2.19.2

Reply via email to