]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 23 Oct 2014 16:33:14 +0000 (19:33 +0300)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 5 Nov 2014 01:53:49 +0000 (19:53 -0600)
commit4224386c61bd9f68473bb3ec7003da96ffeeec32
tree182e4fae3a273244b2157c3024f967f2574af037
parent07f3e0931c7df93ad87c2836ee1d7614860e3ab2
NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT

If the OPEN rpc call to the server fails with an ENOENT call, nfs_atomic_open
will create a negative dentry for that file, however it currently fails
to call nfs_set_verifier(), thus causing the dentry to be immediately
revalidated on the next call to nfs_lookup_revalidate() instead of following
the usual lookup caching rules.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c