From 0276ab4eb9dd09b0bd8e39389a75e960390ceaeb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Oct 2024 22:06:42 +0200 Subject: 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 --- src/mds/Beacon.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mds') 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(); -- cgit v1.2.3