Whamcloud - gitweb
LU-14566 lnet: Skip discovery in LNetPrimaryNID if DD disabled
authorChris Horn <chris.horn@hpe.com>
Fri, 26 Mar 2021 16:28:18 +0000 (11:28 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 02:42:25 +0000 (02:42 +0000)
commit419022d2b8d236036fd59468bb189a9d5fba5786
tree85dc857bdcef7978f522e885115c83b5eebdbfac
parentf9eb4023392d9b0888bfe7499794d84d352d5def
LU-14566 lnet: Skip discovery in LNetPrimaryNID if DD disabled

If discovery is disabled locally then the discovery thread will not
modify any peer objects as a result of the discovery process. Thus,
the primary NID of any peer we're asked to discover will not change
as a result of discovery. Therefore, we do not need to actually
perform discovery in LNetPrimaryNID() if discovery is disabled
locally. Since this routine can result in long client mount times
when a Lustre server is down we should avoid this unnecessary
discovery.

Lustre-change: https://review.whamcloud.com/43141
Lustre-commit: 16264da9e3c43a6368a25b6ded4113e8cfa57427

Test-Parameters: trivial
HPE-bug-id: LUS-9887
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I6d188e16422ad47a146d52bb24cdd1b77a30aa71
Reviewed-on: https://review.whamcloud.com/43141
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/44224
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/peer.c