]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: switch to use projected inode instead 47059/head
authorXiubo Li <xiubli@redhat.com>
Mon, 13 Jun 2022 09:28:00 +0000 (17:28 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 12 Jul 2022 04:44:00 +0000 (12:44 +0800)
commit31c0e467cbce82a98ab67703b1d3363ab0830397
tree61742dadfd29e17838de56fb9e7251517a03b0d6
parent0452b886c524ed763691c142ee333bd30b4a7e33
mds: switch to use projected inode instead

When the client send a sync request to MDS even the client has the
Xx caps, for example, the MDS will revoke the Xx caps back and journal
new changes.

If the client try to create a sub-directory the MDS was always using
the non-projected inode of parent to inherit the gid/uid/mode metadatas,
if the journal log still haven't been flushed and applied yet, it will
always get the old metadatas.

Fixes: https://tracker.ceph.com/issues/56010
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 9e0b3518cbe60d9686eb309135f7eb0383b7bb98)
src/mds/Server.cc