]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
quincy: msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()' 53718/head
authorLeonid Usov <leonid.usov@ibm.com>
Thu, 10 Aug 2023 13:18:53 +0000 (16:18 +0300)
committerLeonid Usov <leonid.usov@ibm.com>
Thu, 28 Sep 2023 15:13:35 +0000 (18:13 +0300)
(cherry picked from commit 36fc1f353436193a0b3e95af27edbf0e6cc4f4c2)

Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
Fixes: https://tracker.ceph.com/issues/63021
src/msg/async/AsyncMessenger.cc

index 3971e91ffd015c908fadab3ebb3c7e2adb623bd4..d002d60897ca5a4df8d752319ee6fc8bdf39cfbf 100644 (file)
@@ -582,7 +582,7 @@ void AsyncMessenger::wait()
     if (!started) {
       return;
     }
-    if (!stopped)
+    while (!stopped)
       stop_cond.wait(locker);
   }
   dispatch_queue.shutdown();