Whamcloud - gitweb
LU-14661 obdclass: Add peer/peer NI when processing llog
authorChris Horn <chris.horn@hpe.com>
Thu, 3 Sep 2020 20:06:08 +0000 (15:06 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 4 Nov 2022 03:55:50 +0000 (03:55 +0000)
commite8ddb2f550072cdd3489389c107af3e892a21f66
treed72b13c71f84b186fbd318d1d13d448ee76e2fd8
parentdcf41e0b012d79545a3f80a88a0991ea9f78f2b6
LU-14661 obdclass: Add peer/peer NI when processing llog

Construct peers when processing the config log so that LNet has
complete information about peer info stored in the config log.

These are "temporary" peers which can be overwritten by discovery.

In client_import_add_nids_to_conn(), we do not need to hold the
import lock when adding NIDs to the obd_uuid, and LNet needs to take
the LNet API mutex when adding/modifying peers. We don't want to take
the mutex while a spin lock is already being held, so drop the spin
lock prior to calling class_add_nids_to_uuid().

Lustre-change: https://review.whamcloud.com/43510
Lustre-commit: 16321de596f6395153be6cbb6192250516963077

HPE-bug-id: LUS-9293
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Ie0e35434c9b76f917c1448064c5217c821b1ad87
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48966
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ldlm/ldlm_lib.c
lustre/obdclass/lustre_peer.c