Whamcloud - gitweb
LU-15189 lnet: fix memory mapping. 82/45482/12
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Mon, 7 Feb 2022 15:02:14 +0000 (18:02 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 May 2022 18:44:18 +0000 (18:44 +0000)
commit959304eac7ec5b156b4bfa57f47cbbf9ef3c8315
treeab8aaa71f026a96ea921d35286778a2c82d0a8e5
parentc65eabc2b1136d6bc2cf2d86d6434d5b4ad300e7
LU-15189 lnet: fix memory mapping.

Nvidia GDS have a bug which caused incorrect page type detect.
It may return an GPU flag for the kmalloc buffer (ptlrpc_message
in my case).
To workaround this - Whamcloud have both mapping calls, but it's
costly and caused an extra RDMA operations as ko2iblnd trust
an msg_rdma_force flag.
Lets drop extra Nvidia calls and check just an real "user" pages
or GPU flag.

HPe-bug-id: LUS-10520
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I5d70c5e0630b0f16e130a7db0385de2443c11a63
Reviewed-on: https://review.whamcloud.com/45482
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/lnet-types.h
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/lnet/lib-md.c
lnet/lnet/lib-move.c
lustre/include/lustre_net.h
lustre/osc/osc_request.c
lustre/ptlrpc/pers.c