NFS: Judge the file access cache's timestamp in rcu path
authorChengen Du <chengen.du@canonical.com>
Fri, 30 Dec 2022 03:04:32 +0000 (11:04 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 2 Jan 2023 01:12:47 +0000 (20:12 -0500)
commit029085b8949f5d269ae2bbd14915407dd0c7f902
treec5acf2190c59e3d1712ec2e94deb2af4acbb4439
parenta6b9d2fa0024e7e399c26facd0fb466b7396e2b9
NFS: Judge the file access cache's timestamp in rcu path

If the user's login time is newer than the cache's timestamp,
we expect the cache may be stale and need to clear.
The stale cache will remain in the list's tail if no other
users operate on that inode.
Once the user accesses the inode, the stale cache will be
returned in rcu path.

Signed-off-by: Chengen Du <chengen.du@canonical.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c