OSDN Git Service

NFS: Handle NFS4ERR_NOT_SAME and NFSERR_BADCOOKIE from readdir calls
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 3 Nov 2020 01:11:32 +0000 (20:11 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:52 +0000 (14:05 -0500)
commit9fff59ed4c4d239125f8529a9971c46defd2e2b0
tree92590d39069dcfba43b98bfdba764f244d309e22
parent82e22a5e6245873779db1607d3b0fec6f9ca07d0
NFS: Handle NFS4ERR_NOT_SAME and NFSERR_BADCOOKIE from readdir calls

If the server returns NFS4ERR_NOT_SAME or tells us that the cookie is
bad in response to a READDIR call, then we should empty the page cache
so that we can fill it from scratch again.

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/nfs4proc.c