Whamcloud - gitweb
LU-14661 lnet: Check if discovery toggled off in ping reply
authorChris Horn <chris.horn@hpe.com>
Wed, 27 Jan 2021 18:22:09 +0000 (12:22 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 Aug 2022 16:31:08 +0000 (16:31 +0000)
commite0c78a3e6a239742ed7d1093dd2d47a4c75ff9f2
tree7965309a6b1e0de94c610efe13dde90caec6ff58
parent69adef63a2c16d7d1fdadae872d3f585dd69815d
LU-14661 lnet: Check if discovery toggled off in ping reply

If a peer is initially discovered and found to have discovery
enabled, but the peer later reloads LNet with discovery disabled,
then we can delete the peer and re-create it the next time the peer
is discovered.

It is safe to delete and re-create the peer as long as it wasn't
configured manually.

In lnet_peer_deletion(), we need to use lnet_del_init() when removing
the peer from the discovery queue because the lnet_peer_del() code
path can result in a call to lnet_peer_queue_for_discovery() where
we check if the lp_dc_list is empty.

Lustre-change: https://review.whamcloud.com/43508
Lustre-commit: 143893381d428466d4c71e075a041a9cbbd28818

Test-Parameters: trivial
HPE-bug-id: LUS-9178
Fixes: aa7de0af69 ("LU-13895 lnet: Prevent discovery on peer marked deletion")
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I0b43d7541711a3b94c492082d4a29487ebe72b09
Reviewed-on: https://review.whamcloud.com/48296
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/peer.c