Whamcloud - gitweb
LU-18352 mgc: explicitly create sptlrpc local copy 09/56609/10
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 8 Oct 2024 13:10:37 +0000 (16:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Sun, 24 Nov 2024 06:07:31 +0000 (06:07 +0000)
commit24846bddb405c563b7f92efd4a07e6c445cb44f3
tree339742b1b55db7729406cadef7eae73667b209ef
parent27fa25b06b0613fb38323904a6e74624eb4a6640
LU-18352 mgc: explicitly create sptlrpc local copy

Sptlrpc config has single instance per MGC and is shared
by targets, hence it is processed only once and local
copy of it is created also only during first processing
for the first target doing that. All other targets just
find config in memory.

Therefore a local copy creation for other targets need
to be done explicitly when already processed config
is found.

Patch introduces mgc_get_local_copy() which does
just llog copy from MGS if possible for a target
finding already processed sptlrpc config

Test-Parameters: testlist=sanity-sec env=ONLY=70,SHARED_KEY=true
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I922f92a950b9a07172f36f42b94da854c7702a80
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56609
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgc/mgc_internal.h
lustre/mgc/mgc_request.c
lustre/mgc/mgc_request_server.c
lustre/tests/sanity-sec.sh