Whamcloud - gitweb
LU-13477 lnet: Force full discovery cycle 77/39577/9
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 5 Aug 2020 19:34:10 +0000 (12:34 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Oct 2020 07:50:01 +0000 (07:50 +0000)
commitc2cd1f4463f48b9c15f9506203f63e4302be3536
tree094ee3ea44ca7042f6873a0b32fbf662e21922f8
parentd22ae9251fe04d717aa0e323312879ba7e2ae3ae
LU-13477 lnet: Force full discovery cycle

There are scenarios where there could be a discrepancy between
cached peer information and reality. In these cases what could
end-up happening is incomplete interface information might be
cached because one side determined that the peer didn't require
a PUSH. This will lead to undesired MR behavior, where not all
the interfaces are used for a period of time.

Therefore, it is safer to always force a full discovery cycle:
GET/PUSH to ensure both sides are up-to-date.

In the NMR case, when discovery is turned off, make sure to flag
discovery as complete to avoid stalling the state machine.

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ie49ad11e8ff874206baa268a4ef2d58ebb536ed5
Lustre-change: https://review.whamcloud.com/38322
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/39577
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/lnet/peer.c