OSDN Git Service

NFS: Fix dentry revalidation on NFSv4 lookup
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 27 Sep 2018 21:12:33 +0000 (17:12 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:18 +0000 (15:35 -0400)
commitbe189f7e7f03de35887e5a85ddcf39b91b5d7fc1
treec6cd8bc584d361d0398bf71ef7268ea8329720e5
parent571ed1fd2390f74e4c1f46994f753fb0d29285e4
NFS: Fix dentry revalidation on NFSv4 lookup

We need to ensure that inode and dentry revalidation occurs correctly
on reopen of a file that is already open. Currently, we can end up
not revalidating either in the case of NFSv4.0, due to the 'cached open'
path.
Let's fix that by ensuring that we only do cached open for the special
cases of open recovery and delegation return.

Reported-by: Stan Hu <stanhu@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c