]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: notify the waiters in replica MDSs
authorXiubo Li <xiubli@redhat.com>
Fri, 23 Dec 2022 00:52:53 +0000 (08:52 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 23 May 2023 00:41:11 +0000 (08:41 +0800)
Fixes: https://tracker.ceph.com/issues/58340
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 478db14a658c39ecbfa107923d9ad44bfdd89368)

src/mds/MDCache.cc

index 101b0b55b37a6b89f94d3ac9abeb2e396867c6a4..6e97e269086bf56a8b0bbd867200f339b892e002 100644 (file)
@@ -11326,6 +11326,11 @@ void MDCache::handle_dentry_unlink(const cref_t<MDentryUnlink> &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);
+
     }
   }