Whamcloud - gitweb
LU-16888 gss: fix ptlrpc_gss automatic loading 64/51264/4
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 9 Jun 2023 12:50:25 +0000 (14:50 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Jun 2023 03:49:16 +0000 (03:49 +0000)
commitb80d6defb7b018250ef4fafccff7c980aed6a444
tree00554933b42ba7f245679cd296bd49383219264c
parentc24a090ec389ae9ca2bedb4c7e3ee777deb63c7f
LU-16888 gss: fix ptlrpc_gss automatic loading

ptlrpc_gss kernel module is automatically loaded when a GSS security
flavor is enforced. Loading success is recorded in a static variable
in the ptlrpc module, which prevents further reloading in case
ptlrpc_gss is unloaded while keeping ptlrpc loaded.
Get rid of this static variable as it is not required in order to
avoid calling request_module("ptlrpc_gss") when not needed. Indeed,
once loaded, the static array policies[] has an entry at the
SPTLRPC_POLICY_GSS index, indicating that the ptlrpc_gss module is
loaded.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I9bb100a202fe9c3fc455a2ffba6ee6398e19b9bf
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51264
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/sec.c