]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix revalidation of dentries with delegations
authorTrond Myklebust <trondmy@gmail.com>
Wed, 5 Feb 2020 14:01:54 +0000 (09:01 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 12 Feb 2020 18:55:25 +0000 (13:55 -0500)
commit864215ec8089428d73ca9157d6866fe86916a345
tree359ce5ab560de88855195f83e3d0844d9bc1932b
parent328ae338a2df1a197ce6c4496e3387fcc20f8614
NFSv4: Fix revalidation of dentries with delegations

If a dentry was not initially looked up while we were holding a
delegation, then we do still need to revalidate that it still holds
the same name. If there are multiple hard links to the same file,
then all the hard links need validation.

Reported-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
[Anna: Put nfs_unset_verifier_delegated() under CONFIG_NFS_V4]
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/delegation.c
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h