aboutsummaryrefslogtreecommitdiffstats
path: root/tools/scripts/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorJack Wang <jinpu.wang@ionos.com>2022-08-18 12:53:54 +0200
committerLeon Romanovsky <leonro@nvidia.com>2022-08-21 12:25:03 +0300
commitb66905e04dc714825aa6cffb950e281b46bbeafe (patch)
treeaaa6f25482bfb802a113ab8cfc90dab34444769e /tools/scripts/ssh:/git@git.zx2c4.com
parentRDMA: Handle the return code from dma_resv_wait_timeout() properly (diff)
downloadlinux-dev-b66905e04dc714825aa6cffb950e281b46bbeafe.tar.xz
linux-dev-b66905e04dc714825aa6cffb950e281b46bbeafe.zip
RDMA/rtrs-clt: Use the right sg_cnt after ib_dma_map_sg
When iommu is enabled, we hit warnings like this: WARNING: at rtrs/rtrs.c:178 rtrs_iu_post_rdma_write_imm+0x9b/0x110 rtrs warn on one sge entry length is 0, which is unexpected. The problem is ib_dma_map_sg augments the SGL into a 'dma mapped SGL'. This process may change the number of entries and the lengths of each entry. Code that touches dma_address is iterating over the 'dma mapped SGL' and must use dma_nents which returned from ib_dma_map_sg(). So pass the count return from ib_dma_map_sg. Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality") Link: https://lore.kernel.org/r/20220818105355.110344-3-haris.iqbal@ionos.com Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Reviewed-by: Aleksei Marov <aleksei.marov@ionos.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions