]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
NFS: Improve handling of directory verifiers
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 3 Nov 2020 01:06:12 +0000 (20:06 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:52 +0000 (14:05 -0500)
commitb593c09f83a2732a0f0298c8f3468236a83cdd9f
treef638335514b84eb03a45779dd45bb4e9710ec290
parent9fff59ed4c4d239125f8529a9971c46defd2e2b0
NFS: Improve handling of directory verifiers

If the server insists on using the readdir verifiers in order to allow
cookies to expire, then we should ensure that we cache the verifier
with the cookie, so that we can return an error if the application
tries to use the expired cookie.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Dave Wysochanski <dwysocha@redhat.com>
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h