]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit209783dc26cda7687a887f1769b1592474049dc3
treec6cd8bc584d361d0398bf71ef7268ea8329720e5
parent8a4dd176ecbda68c835e81c2dc5ab746a85e4bea
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