From: Leonid Usov Date: Thu, 10 Aug 2023 13:18:53 +0000 (+0300) Subject: quincy: msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()' X-Git-Tag: v17.2.8~608^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65d29210351ecc66f8e2ff60c2025aeae96b3f1e;p=ceph.git quincy: msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()' (cherry picked from commit 36fc1f353436193a0b3e95af27edbf0e6cc4f4c2) Signed-off-by: Leonid Usov Fixes: https://tracker.ceph.com/issues/63021 --- diff --git a/src/msg/async/AsyncMessenger.cc b/src/msg/async/AsyncMessenger.cc index 3971e91ffd01..d002d60897ca 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();