Whamcloud - gitweb
LU-14536 o2iblnd: don't resend if there's no listener 95/45895/2
authorLi Dongyang <dongyangli@ddn.com>
Fri, 19 Mar 2021 09:26:28 +0000 (20:26 +1100)
committerOleg Drokin <green@whamcloud.com>
Sun, 30 Jan 2022 03:42:15 +0000 (03:42 +0000)
commitda6e6953305be165798772d820ec59a0a209b604
treed89e7974f90d11b2332cac7d6557d0f189def76e
parentcd3038b769ba1b7c5a4888ad84bdf03ecf51c709
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.

Lustre-change: https://review.whamcloud.com/42109
Lustre-commit: 0ab06eb9d865a47ea3e09880a41a9e8f0a78b6a6

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