]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: defer trim() until after the last cache_rejoin ack being received 56748/head
authorXiubo Li <xiubli@redhat.com>
Wed, 26 Jul 2023 06:34:01 +0000 (14:34 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 8 Apr 2024 02:26:09 +0000 (10:26 +0800)
commita2e314ddceeb5176d879e16fdfecda0d227e2d73
tree0031392fb3cfb7ba994ad749ce6238c40b271967
parentc9c7ecf267aa8df19906776148a561bcbc81ba77
mds: defer trim() until after the last cache_rejoin ack being received

Just before the last cache_rejoin ack being received the entire
subtree, together with the inode subtree root belongs to, were
trimmed the isolated_inodes list couldn't be correctly erased. We
should defer calling the trim() until the last cache_rejoin ack
being received.

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