Whamcloud - gitweb
LU-14488 o2ib: Use rdma_connect_locked if it is defined 77/41977/2
authorSergey Gorenko <sergeygo@nvidia.com>
Thu, 4 Mar 2021 12:33:16 +0000 (14:33 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 22 Mar 2021 16:27:12 +0000 (16:27 +0000)
commitd43375868aba4edcf0bc637256a9fb102709f14f
tree90deeb1740e5ad454510016e81a241c18d2add08
parent6d2aae7396cfcc37873effa137f8e0cc437132ff
LU-14488 o2ib: Use rdma_connect_locked if it is defined

rdma_connect_locked() is added in the upstream kernel 5.10 and
MOFED-5.2-2. After that, it is not allowed to call rdma_connect()
in RDMA CM event handler; rdma_connect_locked() must be used
instead.

This commit adds configure checks to detect whether
rdma_connect_locked() is available and updates the event handler
to call the correct function.

Lustre-change: https://review.whamcloud.com/41887
Lustre-commit: 60d55e42ed9e043341790bf7624627c93cc99200

Test-Parameters: trivial
Signed-off-by: Sergey Gorenko <sergeygo@nvidia.com>
Change-Id: I8068d04810bf6f0200292a55f3fdcea8c71d44c1
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41977
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c