Whamcloud - gitweb
LU-14566 lnet: Skip discovery in LNetPrimaryNID if DD disabled 41/43141/2
authorChris Horn <chris.horn@hpe.com>
Fri, 26 Mar 2021 16:28:18 +0000 (11:28 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Apr 2021 02:11:13 +0000 (02:11 +0000)
commit16264da9e3c43a6368a25b6ded4113e8cfa57427
tree2ab6c975a65ce5b89c8ff1eff08ac8176d324725
parent6621439c371e37268195d05fb3d6747c98c07bc5
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.

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
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/peer.c