]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix handling of cookie verifier in uncached_readdir()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 16 Mar 2021 11:57:40 +0000 (07:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:39 +0000 (10:29 +0200)
commit78214e7f6e71ac819a0671427ebf9b0e8eae0484
tree5b01b389aeb3dacd57df5b726b8728e26ffb887a
parentbdc9e552a3dc81864fcdc7de5aaa89d0703dd8f4
NFS: Fix handling of cookie verifier in uncached_readdir()

[ Upstream commit 13884ff2bef01df37c450c6dd09122f92333dccc ]

If we're doing uncached readdir(), then the readdir cookie could be
different from the one cached in the nfs_inode. We should therefore
ensure that we save that one in the struct nfs_open_dir_context.

Fixes: 35df59d3ef69 ("NFS: Reduce number of RPC calls when doing uncached readdir")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/dir.c