Whamcloud - gitweb
LU-14668 lnet: Lock primary NID logic 63/43563/5
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 5 May 2021 18:35:06 +0000 (11:35 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Aug 2021 01:59:10 +0000 (01:59 +0000)
commit024f9303bc6f32a3113357c864765c4f9c93ed03
tree08685ff7137506c83f30be405fe814075cbd35f1
parent684943e2d0c2ad095e3521586d61d007b4f49abd
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).

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I677b8e01fc89a42128327645861ca6cfba4c1b1a
Reviewed-on: https://review.whamcloud.com/43563
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/peer.c