IB/iser: Support up to 16MB data transfer in a single command
authorSergey Gorenko <sergeygo@mellanox.com>
Thu, 12 Sep 2019 10:35:34 +0000 (10:35 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Sep 2019 19:55:55 +0000 (16:55 -0300)
commit1ba7c8f800586805c409f5b1ff1803318a41933a
tree187be10bedfe71d75c13ca2d1dc2140f75723af4
parent0404bd629fd4d05e7ab815e6e1ecd81e728678d3
IB/iser: Support up to 16MB data transfer in a single command

Maximum supported IO size is 8MB for the iSER driver. The current value is
limited by the ISCSI_ISER_MAX_SG_TABLESIZE macro. But the driver is able
to handle 16MB IOs without any significant changes. Increasing this limit
can be useful for the storage arrays which are fine tuned for IOs larger
than 8 MB.

This commit allows to configure maximum IO size up to 16MB using the
max_sectors module parameter.

Link: https://lore.kernel.org/r/20190912103534.18210-1-sergeygo@mellanox.com
Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/iser/iscsi_iser.h