summaryrefslogtreecommitdiffstats
path: root/src/mds
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2024-10-11 22:06:42 +0200
committerMax Kellermann <max.kellermann@ionos.com>2024-10-29 21:34:19 +0100
commit0276ab4eb9dd09b0bd8e39389a75e960390ceaeb (patch)
treeb777816f5500328bbc3adea7814287250a8549fc /src/mds
parentMerge pull request #57299 from rhcs-dashboard/fix-47066-main (diff)
downloadceph-0276ab4eb9dd09b0bd8e39389a75e960390ceaeb.tar.xz
ceph-0276ab4eb9dd09b0bd8e39389a75e960390ceaeb.zip
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 <max.kellermann@ionos.com>
Diffstat (limited to 'src/mds')
-rw-r--r--src/mds/Beacon.cc1
1 files changed, 1 insertions, 0 deletions
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<std::mutex> lock(mutex);
if (!finished) {
finished = true;
+ cvar.notify_all();
lock.unlock();
if (sender.joinable())
sender.join();