Whamcloud - gitweb
LU-17431 nodemap: determine if nodemap is currently loading 01/55001/2
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 2 May 2024 09:50:34 +0000 (11:50 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:10:13 +0000 (06:10 +0000)
commitbc388f536e52bbb9aca2dcf5765bfbd2681ba2d5
treea4cf3b216db2d7ad6e4cf5e53cef1d541596bb36
parent88dd4d1c47ee48bdafb4d670f83eb3054054c646
LU-17431 nodemap: determine if nodemap is currently loading

To control operations on dynamic nodemaps, we need to know if the
current nodemap configuration is in the process of being loaded.
Only once it is fully loaded the nodemap_mgs() function returns true.
So change semantic of global variable nodemap_config_loaded, to be:
* 0: not loaded yet
* 1: successfully loaded
* -1: loading in progress

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: If5e52e924415f644d0134f4093c2405df0887f87
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55001
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_nodemap.h
lustre/mgc/mgc_request_server.c
lustre/ptlrpc/nodemap_internal.h
lustre/ptlrpc/nodemap_storage.c