Whamcloud - gitweb
LU-14536 o2iblnd: don't resend if there's no listener 09/42109/2
authorLi Dongyang <dongyangli@ddn.com>
Fri, 19 Mar 2021 09:26:28 +0000 (20:26 +1100)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Apr 2021 06:30:32 +0000 (06:30 +0000)
commit0ab06eb9d865a47ea3e09880a41a9e8f0a78b6a6
treefd17d939140e5ad4c34e5a2d26634e3b5acf5a01
parent65e3e4050ec5bb371c1c343fca49a605286a086e
LU-14536 o2iblnd: don't resend if there's no listener

If there's no listener at remote peer, we will
get IB_CM_REJ_INVALID_SERVICE_ID, currently we
will try to resend which makes the discovery longer
than necessary when connecting to a node which is
not up.
Use -EHOSTUNREACH instead of -ECONNREFUSED,
so we don't end up queued for resend.

Change-Id: Ifaf14bc3ada2e2469669285917e366af669817e2
Test-Parameters: trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/42109
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c