]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: switch to use projected inode instead 47058/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:41:11 +0000 (12:41 +0800)
commit1635be00cc0ce40fbe632cce0bf1180cd581e5f2
tree40871858ef10dfef0d44fc004cb74fdac48d3000
parent8d4d0aeb7e3492289c31d9ad87d7ef0b33c36f0a
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