From: Xiubo Li Date: Fri, 23 Dec 2022 00:52:53 +0000 (+0800) Subject: mds: notify the waiters in replica MDSs X-Git-Tag: v17.2.7~190^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9920d48a8f128147ab6c8a9f3f07010a1dbc3610;p=ceph.git mds: notify the waiters in replica MDSs Fixes: https://tracker.ceph.com/issues/58340 Signed-off-by: Xiubo Li (cherry picked from commit 478db14a658c39ecbfa107923d9ad44bfdd89368) --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 7ceea6769b38..d87693a495af 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -11161,6 +11161,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); + } }