From: Max Kellermann Date: Fri, 11 Oct 2024 20:06:42 +0000 (+0200) Subject: mds/Beacon: wake up the thread in shutdown() X-Git-Tag: testing/wip-pdonnell-testing-20241106.142118-debug~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0276ab4eb9dd09b0bd8e39389a75e960390ceaeb;p=ceph-ci.git mds/Beacon: wake up the thread in shutdown() This eliminates the `wait_for()` delay and speeds up MDS shutdown. Fixes: https://tracker.ceph.com/issues/68759 Signed-off-by: Max Kellermann --- diff --git a/src/mds/Beacon.cc b/src/mds/Beacon.cc index 642d3428a27..392aa3dcd40 100644 --- a/src/mds/Beacon.cc +++ b/src/mds/Beacon.cc @@ -61,6 +61,7 @@ void Beacon::shutdown() std::unique_lock lock(mutex); if (!finished) { finished = true; + cvar.notify_all(); lock.unlock(); if (sender.joinable()) sender.join();