From: Leonid Usov Date: Thu, 10 Aug 2023 13:18:53 +0000 (+0300) Subject: msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()' X-Git-Tag: v19.0.0~404^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=36fc1f353436193a0b3e95af27edbf0e6cc4f4c2;p=ceph-ci.git msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()' Signed-off-by: Leonid Usov Fixes: https://tracker.ceph.com/issues/62395 --- diff --git a/src/msg/async/AsyncMessenger.cc b/src/msg/async/AsyncMessenger.cc index 3971e91ffd0..d002d60897c 100644 --- a/src/msg/async/AsyncMessenger.cc +++ b/src/msg/async/AsyncMessenger.cc @@ -582,7 +582,7 @@ void AsyncMessenger::wait() if (!started) { return; } - if (!stopped) + while (!stopped) stop_cond.wait(locker); } dispatch_queue.shutdown();