mbox series

[v5,0/5] nfsd: clean up refcounting in the filecache

Message ID 20221101144647.136696-1-jlayton@kernel.org (mailing list archive)
Headers show
Series nfsd: clean up refcounting in the filecache | expand

Message

Jeffrey Layton Nov. 1, 2022, 2:46 p.m. UTC
v5:
- drop the SYNC_NONE flush on addition to the LRU
- schedule the laundrette when adding to the LRU
- base laundrette scheduling on having work to do
- fix potential race in NFSD_FILE_LRU handling
- drop comments that mention NFS version

A number of changes in this set, mostly around the LRU handling. I've
done some light testing with it this morning and it seems to be OK.

Jeff Layton (5):
  nfsd: remove the pages_flushed statistic from filecache
  nfsd: reorganize filecache.c
  nfsd: rework refcounting in filecache
  nfsd: close race between unhashing and LRU addition
  nfsd: fix up the filecache laundrette scheduling

 fs/nfsd/filecache.c | 397 ++++++++++++++++++++++----------------------
 fs/nfsd/filecache.h |   1 +
 fs/nfsd/trace.h     |   5 +-
 3 files changed, 207 insertions(+), 196 deletions(-)