From: Xiubo Li Date: Fri, 23 Dec 2022 00:52:53 +0000 (+0800) Subject: mds: notify the waiters in replica MDSs X-Git-Tag: v19.0.0~1159^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=478db14a658c39ecbfa107923d9ad44bfdd89368;p=ceph-ci.git mds: notify the waiters in replica MDSs Fixes: https://tracker.ceph.com/issues/58340 Signed-off-by: Xiubo Li --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 1624aaab747..efdaedf44ab 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -11328,6 +11328,11 @@ void MDCache::handle_dentry_unlink(const cref_t &m) } ceph_assert(dnl->is_null()); dn->state_clear(CDentry::STATE_UNLINKING); + + MDSContext::vec finished; + dn->take_waiting(CDentry::WAIT_UNLINK_FINISH, finished); + mds->queue_waiters(finished); + } }