]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: trigger to flush the mdlog in handle_find_ino() 46497/head
authorXiubo Li <xiubli@redhat.com>
Tue, 19 Apr 2022 06:21:49 +0000 (14:21 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 2 Jun 2022 04:44:57 +0000 (12:44 +0800)
commit58a73b7334c19bc93d5d3de27ccccda5afabe3cf
treeefce32841a6aa967f8137b1d0c6cbc96d7649d2a
parentb2fe9ec8f196344392fe3f6585f09e54ecdb568a
mds: trigger to flush the mdlog in handle_find_ino()

If the the CInode was just created by using openc in current
auth MDS, but the client just sends a getattr request to another
replica MDS. Then here it will make a path of '#INODE-NUMBER'
only because the CInode hasn't been linked yet, and the replica
MDS will keep retrying until the auth MDS flushes the mdlog and
the C_MDS_openc_finish and link_primary_inode are called at most
5 seconds later.

Fixes: https://tracker.ceph.com/issues/55240
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 5d6dd5d1acf94eade4a2c0f48777c95473d454ae)
src/mds/MDCache.cc