linux-stable/fs/nfsd
Chuck Lever 76ed0dd96e NFSD: Reduce svc_rqst::rq_pages churn during READDIR operations
During NFSv2 and NFSv3 READDIR/PLUS operations, NFSD advances
rq_next_page to the full size of the client-requested buffer, then
releases all those pages at the end of the request. The next request
to use that nfsd thread has to refill the pages.

NFSD does this even when the dirlist in the reply is small. With
NFSv3 clients that send READDIR operations with large buffer sizes,
that can be 256 put_page/alloc_page pairs per READDIR request, even
though those pages often remain unused.

We can save some work by not releasing dirlist buffer pages that
were not used to form the READDIR Reply. I've left the NFSv2 code
alone since there are never more than three pages involved in an
NFSv2 READDIR Reply.

Eventually we should nail down why these pages need to be released
at all in order to avoid allocating and releasing pages
unnecessarily.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2021-03-22 10:18:56 -04:00
..
acl.h nfsd: eliminate an unnecessary acl size limit 2019-08-28 21:13:45 -04:00
auth.c
auth.h
blocklayout.c block: remove unnecessary argument from blk_execute_rq 2021-01-24 21:52:39 -07:00
blocklayoutxdr.c
blocklayoutxdr.h
cache.h nfsd4: make drc_slab global, not per-net 2020-06-01 17:44:45 -04:00
current_stateid.h
export.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
export.h nfsd: report per-export stats 2021-01-25 09:36:28 -05:00
fault_inject.c nfsd: no need to check return value of debugfs_create functions 2019-07-03 16:57:17 +02:00
filecache.c nfsd: Don't keep looking up unhashed files in the nfsd file cache 2021-03-06 16:41:47 -05:00
filecache.h nfsd: convert file cache to use over/underflow safe refcount 2020-02-06 11:22:55 -05:00
flexfilelayout.c
flexfilelayoutxdr.c
flexfilelayoutxdr.h
idmap.h
Kconfig fs: nfsd: fix kconfig dependency warning for NFSD_V4 2021-03-06 16:41:48 -05:00
lockd.c
Makefile nfsd: remove fault injection code 2020-09-25 18:01:26 -04:00
netns.h nfsd: protect concurrent access to nfsd stats counters 2021-01-25 09:36:27 -05:00
nfs2acl.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
nfs3acl.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
nfs3proc.c NFSD: Reduce svc_rqst::rq_pages churn during READDIR operations 2021-03-22 10:18:56 -04:00
nfs3xdr.c NFSD: Remove unused NFSv3 directory entry encoders 2021-03-22 10:18:56 -04:00
nfs4acl.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00
nfs4callback.c NFSD: fix error handling in NFSv4.0 callbacks 2021-03-11 10:58:49 -05:00
nfs4idmap.c nfsd: Use seq_putc() in two functions 2020-07-13 17:28:46 -04:00
nfs4layouts.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
nfs4proc.c NFSD: Extract the svcxdr_init_encode() helper 2021-03-22 10:18:51 -04:00
nfs4recover.c namei: prepare for idmapped mounts 2021-01-24 14:27:18 +01:00
nfs4state.c NFSD: Extract the svcxdr_init_encode() helper 2021-03-22 10:18:51 -04:00
nfs4xdr.c NFSD: Extract the svcxdr_init_encode() helper 2021-03-22 10:18:51 -04:00
nfscache.c nfsd: protect concurrent access to nfsd stats counters 2021-01-25 09:36:27 -05:00
nfsctl.c Optimization: 2021-02-22 13:29:55 -08:00
nfsd.h nfsd: report per-export stats 2021-01-25 09:36:28 -05:00
nfsfh.c NFSD: Update the GETATTR3res encoder to use struct xdr_stream 2021-03-22 10:18:51 -04:00
nfsfh.h NFSD: Update the GETATTR3res encoder to use struct xdr_stream 2021-03-22 10:18:51 -04:00
nfsproc.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
nfssvc.c NFSD: Extract the svcxdr_init_encode() helper 2021-03-22 10:18:51 -04:00
nfsxdr.c NFSD: Clean up after updating NFSv2 ACL decoders 2021-01-25 09:36:27 -05:00
pnfs.h
state.h nfsd: simplify nfsd4_check_open_reclaim 2021-01-28 10:55:37 -05:00
stats.c nfsd: protect concurrent access to nfsd stats counters 2021-01-25 09:36:27 -05:00
stats.h nfsd: report per-export stats 2021-01-25 09:36:28 -05:00
trace.c NFSD: Add SPDX header for fs/nfsd/trace.c 2020-11-30 13:00:24 -05:00
trace.h NFSD: Add tracepoints in nfsd4_decode/encode_compound() 2020-11-30 14:46:35 -05:00
vfs.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
vfs.h NFSD: Update the NFSv3 ACCESS3res encoder to use struct xdr_stream 2021-03-22 10:18:52 -04:00
xdr.h NFSD: Clean up after updating NFSv2 ACL decoders 2021-01-25 09:36:27 -05:00
xdr3.h NFSD: Remove unused NFSv3 directory entry encoders 2021-03-22 10:18:56 -04:00
xdr4.h NFSD: Extract the svcxdr_init_encode() helper 2021-03-22 10:18:51 -04:00
xdr4cb.h