Skip to content

Dentry revalidation fixups

Benjamin Coddington linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3NFS: Fix up directory verifier racesfs/nfs/dir.c+14 -70 replies
2/3NFSv4: Fix races between open and dentry revalidationfs/nfs/nfs4file.c fs/nfs/nfs4proc.c+16 -30 replies
3/3NFSv4: Fix revalidation of dentries with delegationsfs/nfs/delegation.c fs/nfs/dir.c fs/nfs/inode.c +1 more+113 -230 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchBenjamin Coddington
1/3R-b T-b
2/3R-b T-b
3/3R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Dentry revalidation fixups

Trond's helped me out with my dentry revalidation woes. The first two patches fix races that may occur, and the third patch fixes a problem I've tried to solve in the past where the client can decide not to revalidate a dentry because we hold a delegation, but really it should be revalidated because we cached that dentry before the delegation. The most recent attempt and discussion of that problem was here:

https://lore.kernel.org/linux-nfs/bcb5ffd399c4434730e6d100a5b7cae5e207244e.1580225161.git.bcodding@redhat.com/#t

That patch went to linux-next and should be dropped. Anna, it looks like you've already dropped it, but I just wanted to make a note of it.

Thanks for all the help, Trond!

Trond Myklebust (3):
NFS: Fix up directory verifier races
NFSv4: Fix races between open and dentry revalidation
NFSv4: Fix revalidation of dentries with delegations

 fs/nfs/delegation.c    |   6 ++
 fs/nfs/dir.c           | 124 +++++++++++++++++++++++++++++++++++++----
 fs/nfs/inode.c         |   1 +
 fs/nfs/nfs4file.c      |   1 -
 fs/nfs/nfs4proc.c      |  18 +++++-
 include/linux/nfs_fs.h |  26 ++-------
 6 files changed, 143 insertions(+), 33 deletions(-)
Signature · 1 line
2.20.1