Whamcloud - gitweb
LU-14668 lnet: Lock primary NID logic 06/50106/2
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 5 May 2021 18:35:06 +0000 (11:35 -0700)
committerSerguei Smirnov <ssmirnov@whamcloud.com>
Sat, 25 Feb 2023 01:29:31 +0000 (17:29 -0800)
commit551867989ac96d50f66eb63c5be3f3b4d9b5f3a0
tree0044dc4e2084ee770f4016f1ea524cfc1ccb4a2e
parent8beeec77c3b426a01e1f10ca51149c7ca7e01b7e
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.

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I8fc8a69caccca047e3085bb33d026a3f09fb359b
lnet/lnet/peer.c