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)
commitefeda80da38d0b4afd77a12bd4a44f657567d26c
tree359ce5ab560de88855195f83e3d0844d9bc1932b
parentcf5b4059ba7197d6cef9c0e024979d178ed8c8ec
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