]> git.baikalelectronics.ru Git - 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)
commit39718ec83b0755254b8a0b99d0ed6eab348ad54b
treef638335514b84eb03a45779dd45bb4e9710ec290
parentc5523fc58852256c4e04fcc4918ca92df1a03ea8
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