linux-rockchip/fs/nfsd
Chuck Lever 7cfc972acb NFSD: Mark filecache "down" if init fails
[ Upstream commit dc0d0f885aa422f621bc1c2124133eff566b0bc8 ]

NeilBrown says:
> The handling of NFSD_FILE_CACHE_UP is strange.  nfsd_file_cache_init()
> sets it, but doesn't clear it on failure.  So if nfsd_file_cache_init()
> fails for some reason, nfsd_file_cache_shutdown() would still try to
> clean up if it was called.

Reported-by: NeilBrown <neilb@suse.de>
Fixes: c7b824c3d0 ("NFSD: Replace the "init once" mechanism")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:22:18 +02:00
..
acl.h
auth.c
auth.h
blocklayout.c
blocklayoutxdr.c
blocklayoutxdr.h
cache.h nfsd: make all of the nfsd stats per-network namespace 2024-08-19 06:00:05 +02:00
current_stateid.h
export.c NFSD: Fix frame size warning in svc_export_parse() 2024-08-19 06:00:04 +02:00
export.h NFSD: Fix frame size warning in svc_export_parse() 2024-08-19 06:00:04 +02:00
fault_inject.c
filecache.c NFSD: Mark filecache "down" if init fails 2024-10-17 15:22:18 +02:00
filecache.h
flexfilelayout.c
flexfilelayoutxdr.c
flexfilelayoutxdr.h
idmap.h
Kconfig
lockd.c
Makefile
netns.h nfsd: make svc_stat per-network namespace instead of global 2024-08-19 06:00:05 +02:00
nfs2acl.c
nfs3acl.c
nfs3proc.c
nfs3xdr.c
nfs4acl.c
nfs4callback.c
nfs4idmap.c nfsd: call cache_put if xdr_reserve_space returns NULL 2024-10-17 15:21:08 +02:00
nfs4layouts.c
nfs4proc.c nfsd: Fix a regression in nfsd_setattr() 2024-08-29 17:30:53 +02:00
nfs4recover.c nfsd: return -EINVAL when namelen is 0 2024-10-17 15:21:08 +02:00
nfs4state.c nfsd: fix delegation_blocked() to block correctly for at least 30 seconds 2024-10-17 15:21:57 +02:00
nfs4xdr.c NFSD: Fix NFSv4's PUTPUBFH operation 2024-10-17 15:21:58 +02:00
nfscache.c nfsd: make all of the nfsd stats per-network namespace 2024-08-19 06:00:05 +02:00
nfsctl.c nfsd: drop the nfsd_put helper 2024-08-29 17:30:53 +02:00
nfsd.h nfsd: drop the nfsd_put helper 2024-08-29 17:30:53 +02:00
nfsfh.c nfsd: make all of the nfsd stats per-network namespace 2024-08-19 06:00:05 +02:00
nfsfh.h
nfsproc.c
nfssvc.c nfsd: call nfsd_last_thread() before final nfsd_put() 2024-08-29 17:30:52 +02:00
nfsxdr.c
pnfs.h
state.h
stats.c nfsd: make svc_stat per-network namespace instead of global 2024-08-19 06:00:05 +02:00
stats.h nfsd: make svc_stat per-network namespace instead of global 2024-08-19 06:00:05 +02:00
trace.c
trace.h NFSD: Replace nfsd_prune_bucket() 2024-08-19 06:00:04 +02:00
vfs.c nfsd: map the EBADMSG to nfserr_io to avoid warning 2024-10-17 15:21:58 +02:00
vfs.h
xdr.h
xdr3.h
xdr4.h
xdr4cb.h