On Mon, Oct 19, 2020 at 12:46:28PM +0300, Max Gurtovoy wrote: > Currently, iser target support max IO size of 16MiB by default. For some > adapters, allocating this amount of resources might reduce the total > number of possible connections that can be created. For those adapters, > it's preferred to reduce the max IO size to be able to create more > connections. Since there is no handshake procedure for max IO size in > iser protocol, set the default max IO size to 1MiB and add a module > parameter for enabling the option to control it for suitable adapters. > > Fixes: 317000b926b0 ("IB/isert: allocate RW ctxs according to max IO size") > Reported-by: Krishnamraju Eraparaju <krishna2@xxxxxxxxxxx> > Reviewed-by: Sagi Grimberg <sagi@xxxxxxxxxxx> > Signed-off-by: Max Gurtovoy <mgurtovoy@xxxxxxxxxx> > --- > > changes from v1: > - added "Fixes" line (Sagi) > - renamed ISCSI_ISER_SG_TABLESIZE to ISCSI_ISER_DEF_SG_TABLESIZE (Sagi) > - added "Reviewed-by" signature > > --- > drivers/infiniband/ulp/isert/ib_isert.c | 27 ++++++++++++++++++++++++- > drivers/infiniband/ulp/isert/ib_isert.h | 6 ++++++ > 2 files changed, 32 insertions(+), 1 deletion(-) Applied to for-next, thanks Jason