]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
aio_cxx: Fix mutual deadlock in PoolEIOflag test
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 26 Nov 2025 14:36:42 +0000 (14:36 +0000)
committerNitzan Mordechai <nmordech@ibm.com>
Mon, 4 May 2026 12:46:50 +0000 (12:46 +0000)
commit9da2d94dd46adaae8926be3aeff33f3d67b17741
tree0b141e6280f4aa59d2195372a270020e93e5c364
parent9843cc23d6d3673398874ae3e3a7c928a9e23997
aio_cxx: Fix mutual deadlock in PoolEIOflag test

The LibRadosAio.PoolEIOFlag test was unstable, it was hanging due to:

 - Deadlock: The main thread held the shared mutex ('my_lock') while
   calling thread join. This created a mutual deadlock.
    * Fix: Mutex is unlocked before thread join using RAII scopes.
 - also convert to std::jthread and drop the join

Fixes: https://tracker.ceph.com/issues/73946
Signed-off-by: Nitzan Mordechai <nmordec@ibm.com>
src/test/librados/aio_cxx.cc