mds: notify the waiters in replica MDSs

Fixes: https://tracker.ceph.com/issues/58340
Signed-off-by: Xiubo Li <xiubli@redhat.com>
This commit is contained in:
Xiubo Li 2022-12-23 08:52:53 +08:00
parent 8c4f52415b
commit 478db14a65

View File

@ -11328,6 +11328,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);
}
}