]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pacific: msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()' 53716/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:11:51 +0000 (18:11 +0300)
(cherry picked from commit 36fc1f353436193a0b3e95af27edbf0e6cc4f4c2)

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

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