Whamcloud - gitweb
LU-13181 o2ib: fix page mapping error 88/37388/10
authorAlexey Lyashkov <c17817@cray.com>
Mon, 8 Jun 2020 00:27:18 +0000 (20:27 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Jun 2020 02:21:07 +0000 (02:21 +0000)
commit40385cda7afbd62faf7de2e956f0c7f4fa1a3fed
treece57b529cbc0e006b363c8eade3c2eb9a8c7547e
parent4072d863c240fa5466f0f616f7e9b1cfcdf0aa0e
LU-13181 o2ib: fix page mapping error

IB DMA mapping can merge a physically continues page region into
single one.
It's confused a kiblnd_fmr_pool_map function who expect to see all
fragments mapped.
It's generate a error
 (o2iblnd.c:1926:kiblnd_fmr_pool_map()) Failed to map mr 1/16 elements

By study an IB code, it looks ib_map_mr_sg return code should checked
against of result of ib_dma_map_sg instead of original fragments
count, same data should be used as argument of ib_map_mr_sg function.

Test-Parameters: trivial
Cray-bug-id: LUS-8139
Signed-off-by: Alexey Lyashkov <c17817@cray.com>
Change-Id: I3b845ae54d8659d4045921f519effcf0a4428e49
Reviewed-on: https://review.whamcloud.com/37388
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd_cb.c