linux-uconsole/drivers/infiniband/ulp/iser
Max Gurtovoy 81f3665c36 IB/iser: bound protection_sg size by data_sg size
[ Upstream commit 7718cf03c3 ]

In case we don't set the sg_prot_tablesize, the scsi layer assign the
default size (65535 entries). We should limit this size since we should
take into consideration the underlaying device capability. This cap is
considered when calculating the sg_tablesize. Otherwise, for example,
we can get that /sys/block/sdb/queue/max_segments is 128 and
/sys/block/sdb/queue/max_integrity_segments is 65535.

Link: https://lore.kernel.org/r/1569359027-10987-1-git-send-email-maxg@mellanox.com
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:34:49 +01:00
..
iscsi_iser.c IB/iser: bound protection_sg size by data_sg size 2019-12-31 16:34:49 +01:00
iscsi_iser.h IB/iser: use T10-PI check mask definitions from core layer 2018-06-04 09:19:24 -06:00
iser_initiator.c IB/iser: Fix possible NULL deref at iser_inv_desc() 2019-11-20 18:47:53 +01:00
iser_memory.c Merge branch 'linus/master' into rdma.git for-next 2018-08-16 14:21:29 -06:00
iser_verbs.c iser: set sector for ambiguous mr status errors 2018-12-08 12:59:06 +01:00
Kconfig
Makefile