Whamcloud - gitweb
LU-14661 obdclass: Add peer/peer NI when processing llog 10/43510/6
authorChris Horn <chris.horn@hpe.com>
Thu, 3 Sep 2020 20:06:08 +0000 (15:06 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Aug 2021 01:58:59 +0000 (01:58 +0000)
commit16321de596f6395153be6cbb6192250516963077
treeb0c56ff5c83fe5ab60cef036489e974df68514fa
parentac201366ad5700edc860c139955af8a09bf53a1a
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().

HPE-bug-id: LUS-9293
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Ie0e35434c9b76f917c1448064c5217c821b1ad87
Reviewed-on: https://review.whamcloud.com/43510
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lib.c
lustre/obdclass/lustre_peer.c