OSDN Git Service

nfsd: move reply cache initialization into nfsd startup
authorJeff Layton <jlayton@kernel.org>
Wed, 11 Jan 2023 16:19:59 +0000 (11:19 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:32 +0000 (09:20 -0500)
commitf5f9d4a314da88c0a5faa6d168bf69081b7a25ae
tree742eef94e22336af172d6e90dd7a95ba3f7f665c
parentdb1d61656c78ccbeaa1b8741301bcd85a953f4b2
nfsd: move reply cache initialization into nfsd startup

There's no need to start the reply cache before nfsd is up and running,
and doing so means that we register a shrinker for every net namespace
instead of just the ones where nfsd is running.

Move it to the per-net nfsd startup instead.

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