Whamcloud - gitweb
LU-16450 kfilnd: Cancel TNs if handshake fails 90/49590/2
authorChris Horn <chris.horn@hpe.com>
Tue, 25 Oct 2022 19:21:17 +0000 (13:21 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Jan 2023 15:32:46 +0000 (15:32 +0000)
commit6e5909b72ff0b21a328c0aefbab931033f539eb7
treeff6492a4fb2965c45ea3b9fd3dfa6b8089bc89f5
parent485e412acbf7fb977ac4024e2ec1feb2d4a5c546
LU-16450 kfilnd: Cancel TNs if handshake fails

When sending a message to a new peer a HELLO is sent first and the
original message waits for the handshake to complete. If the HELLO
fails to be sent then the original message will continue to wait for
the full LND timeout. When we retry the original message we should
check whether there is actually an outstanding HELLO. If not, then
this indicates the HELLO failed and we should cancel the TN.

HPE-bug-id: LUS-11310
Test-Parameters: trivial
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I4ed07964d5af0bcc3bdca33c1ea46fd436af2e98
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49590
Reviewed-by: Ron Gredvig <ron.gredvig@hpe.com>
Reviewed-by: Ian Ziemba <ian.ziemba@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/klnds/kfilnd/kfilnd_tn.c