Whamcloud - gitweb
LU-14488 o2ib: Use rdma_connect_locked if it is defined
authorSergey Gorenko <sergeygo@nvidia.com>
Thu, 4 Mar 2021 12:33:16 +0000 (14:33 +0200)
committerLi Xi <lixi@ddn.com>
Fri, 12 Mar 2021 16:56:13 +0000 (16:56 +0000)
commita2347760d928904bdf0e60848442849b9d9b01f5
treef20ec9ae0ec8529afca9a8e43eed82d88cf05fac
parent4ab46a2153ea8826a565fc6e9641e42c746a3613
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-on: https://review.whamcloud.com/41887
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41999
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c