]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: set DCACHE_NOKEY_NAME in atomic open
authorJeff Layton <jlayton@kernel.org>
Mon, 28 Mar 2022 20:18:38 +0000 (16:18 -0400)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 Aug 2022 02:59:51 +0000 (10:59 +0800)
commit3cf18ea91cfdabd242c08cca60dabe4c5d68b372
treedaaf2574eb5c8a337f4a1d75dd1a2ce5a985a408
parent6b289d747921f74a9a85bdf8352b64b35a284293
ceph: set DCACHE_NOKEY_NAME in atomic open

Atomic open can act as a lookup if handed a dentry that is negative on
the MDS. Ensure that we set DCACHE_NOKEY_NAME on the dentry in
atomic_open, if we don't have the key for the parent. Otherwise, we can
end up validating the dentry inappropriately if someone later adds a
key.

Reviewed-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/file.c