kernel_samsung_a53x/fs/nfsd
Chuck Lever 9cbaef3ecb NFSD: Increase NFSD_MAX_OPS_PER_COMPOUND
[ Upstream commit 80e591ce636f3ae6855a0ca26963da1fdd6d4508 ]

When attempting an NFSv4 mount, a Solaris NFSv4 client builds a
single large COMPOUND that chains a series of LOOKUPs to get to the
pseudo filesystem root directory that is to be mounted. The Linux
NFS server's current maximum of 16 operations per NFSv4 COMPOUND is
not large enough to ensure that this works for paths that are more
than a few components deep.

Since NFSD_MAX_OPS_PER_COMPOUND is mostly a sanity check, and most
NFSv4 COMPOUNDS are between 3 and 6 operations (thus they do not
trigger any re-allocation of the operation array on the server),
increasing this maximum should result in little to no impact.

The ops array can get large now, so allocate it via vmalloc() to
help ensure memory fragmentation won't cause an allocation failure.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216383
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:28:21 +01:00
..
acl.h NFSD: add posix ACLs to struct nfsd_attrs 2024-11-19 12:28:04 +01:00
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blocklayout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blocklayoutxdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blocklayoutxdr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
current_stateid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
export.c nfsd: report per-export stats 2024-11-19 12:27:31 +01:00
export.h nfsd: report per-export stats 2024-11-19 12:27:31 +01:00
fault_inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
filecache.c NFSD: Ensure nf_inode is never dereferenced 2024-11-19 12:28:01 +01:00
filecache.h NFSD: Ensure nf_inode is never dereferenced 2024-11-19 12:28:01 +01:00
flexfilelayout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flexfilelayoutxdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flexfilelayoutxdr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
lockd.c Keep read and write fds with each nlm_file 2024-11-19 12:27:44 +01:00
Makefile NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
netns.h NFSD: limit the number of v4 clients to 1024 per 1GB of system memory 2024-11-19 12:28:02 +01:00
nfs2acl.c NFSD: use (un)lock_inode instead of fh_(un)lock for file operations 2024-11-19 12:28:04 +01:00
nfs3acl.c NFSD: use (un)lock_inode instead of fh_(un)lock for file operations 2024-11-19 12:28:04 +01:00
nfs3proc.c NFSD: use explicit lock/unlock for directory ops 2024-11-19 12:28:04 +01:00
nfs3xdr.c NFSD: Deprecate NFS_OFFSET_MAX 2024-11-19 12:27:53 +01:00
nfs4acl.c NFSD: add posix ACLs to struct nfsd_attrs 2024-11-19 12:28:04 +01:00
nfs4callback.c NFSD: Move copy offload callback arguments into a separate structure 2024-11-19 12:28:03 +01:00
nfs4idmap.c NFSD: move from strlcpy with unused retval to strscpy 2024-11-19 12:28:21 +01:00
nfs4layouts.c nfsd: fix using the correct variable for sizeof() 2024-11-19 12:27:54 +01:00
nfs4proc.c NFSD: remove redundant variable status 2024-11-19 12:28:21 +01:00
nfs4recover.c nfsd: Propagate some error code returned by memdup_user() 2024-11-19 12:28:21 +01:00
nfs4state.c NFSD: use (un)lock_inode instead of fh_(un)lock for file operations 2024-11-19 12:28:04 +01:00
nfs4xdr.c NFSD: Increase NFSD_MAX_OPS_PER_COMPOUND 2024-11-19 12:28:21 +01:00
nfscache.c nfsd: destroy percpu stats counters after reply cache shutdown 2024-11-19 12:27:58 +01:00
nfsctl.c nfsd: silence extraneous printk on nfsd.ko insertion 2024-11-19 12:28:02 +01:00
nfsd.h NFSD: limit the number of v4 clients to 1024 per 1GB of system memory 2024-11-19 12:28:02 +01:00
nfsfh.c NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
nfsfh.h NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
nfsproc.c NFSD: use explicit lock/unlock for directory ops 2024-11-19 12:28:04 +01:00
nfssvc.c NFSD: move from strlcpy with unused retval to strscpy 2024-11-19 12:28:21 +01:00
nfsxdr.c SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
pnfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
state.h NFSD: Increase NFSD_MAX_OPS_PER_COMPOUND 2024-11-19 12:28:21 +01:00
stats.c nfsd: make nfsd_stats.th_cnt atomic_t 2024-11-19 12:27:50 +01:00
stats.h nfsd: make nfsd_stats.th_cnt atomic_t 2024-11-19 12:27:50 +01:00
trace.c NFSD: Add SPDX header for fs/nfsd/trace.c 2024-11-19 12:27:20 +01:00
trace.h NFSD: Move nfsd_file_trace_alloc() tracepoint 2024-11-19 12:28:01 +01:00
vfs.c nfsd_splice_actor(): handle compound pages 2024-11-19 12:28:21 +01:00
vfs.h NFSD: add posix ACLs to struct nfsd_attrs 2024-11-19 12:28:04 +01:00
xdr.h SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
xdr3.h SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
xdr4.h NFSD: verify the opened dentry after setting a delegation 2024-11-19 12:28:03 +01:00
xdr4cb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00