Whamcloud - gitweb
LU-14668 lnet: Lock primary NID logic
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 5 May 2021 18:35:06 +0000 (11:35 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 28 Feb 2023 04:19:49 +0000 (04:19 +0000)
commit084f22e5e3177a3f77cd8616edd982b69dc4875c
tree9cf92cc3db1068ec4c0b84dcb26afe3142ad8931
parent13ace1722a7f51bf7a1805a47e5f13eb4a8f5c3b
LU-14668 lnet: Lock primary NID logic

If a peer is created by Lustre make sure to lock that peer's
primary NID. This peer can be discovered in the background.
There is no need to block until discovery is complete, as Lustre
can continue on with the primary NID it provided.

Discovery will populate the peer with other interfaces the peer has
but will not change the peer's primary NID. It can also delete
peer's NIDs which Lustre told it about (not the Primary NID).

If a peer has been manually discovered via
   lnetctl discover <nid>
command, then make sure to delete the manually discovered
peer and recreate it with the Lustre NID information
provided for us.

Lustre-change: https://review.whamcloud.com/50106
Lustre-commit: TBD (551867989ac96d50f66eb63c5be3f3b4d9b5f3a0)

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I8fc8a69caccca047e3085bb33d026a3f09fb359b
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50114
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/peer.c