]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Fri, 27 Jan 2017 10:16:00 +0000 (11:16 +0100)
commitdfdab4c438c9621ef04bd883f81b6877678bb572
tree78f37b8cafca0e1b624f65d837bb928a31c113bf
parenta88a2be387d1d8a5843826e12009c79e32fb46c8
NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT

commit 809fd143de8805970eec02c27c0bc2622a6ecbda upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfs/dir.c