NFSD: replace delayed_work with work_struct for nfsd_client_shrinker
authorDai Ngo <dai.ngo@oracle.com>
Thu, 12 Jan 2023 00:06:51 +0000 (16:06 -0800)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 12 Jan 2023 14:38:30 +0000 (09:38 -0500)
commit7c24fa225081f31bc6da6a355c1ba801889ab29a
tree6f829666e4f97f71627481a4002bfdfd88186443
parentf385f7d244134246f984975ed34cd75f77de479f
NFSD: replace delayed_work with work_struct for nfsd_client_shrinker

Since nfsd4_state_shrinker_count always calls mod_delayed_work with
0 delay, we can replace delayed_work with work_struct to save some
space and overhead.

Also add the call to cancel_work after unregister the shrinker
in nfs4_state_shutdown_net.

Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/netns.h
fs/nfsd/nfs4state.c