]> 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)
commitf3922951d80b8de3127321cf82185ef10f50c8be
treef638335514b84eb03a45779dd45bb4e9710ec290
parent7e3606d9b2389617610cccedc635848ddccba5a8
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