]> www.infradead.org Git - users/hch/misc.git/commit
NFSD: Add experimental setting to disable the use of splice read
authorChuck Lever <chuck.lever@oracle.com>
Sat, 8 Mar 2025 20:14:38 +0000 (15:14 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 11 May 2025 23:48:24 +0000 (19:48 -0400)
commit1218149037ee80f88aee4fa4c34b1de23df77fb1
tree9168fb908e988b37608fa4e2cfcd7bfc73be8fcf
parent9fe5ea760e64f04412dbed51645a0dac7220d40a
NFSD: Add experimental setting to disable the use of splice read

NFSD currently has two separate code paths for handling read
requests. One uses page splicing; the other is a traditional read
based on an iov iterator.

Because most Linux file systems support splice read, the latter
does not get nearly the same test experience as splice reads.

To force the use of vectored reads for testing and benchmarking,
introduce the ability to disable splice reads for all NFS READ
operations.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/debugfs.c
fs/nfsd/nfsd.h
fs/nfsd/vfs.c