]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async: race condition between reset_recv_state and shutdown_connections
authorNitzan Mordechai <nmordech@redhat.com>
Tue, 10 Dec 2024 09:04:34 +0000 (09:04 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 5 Oct 2025 10:59:23 +0000 (10:59 +0000)
commit8d1a5892a36d9b69d1748ab480a37a671b149cb0
tree4ecab3de801b4687dfaa6db0f69a990222756800
parent3f54423150bb2b88b960c28fbed1b3b704ce5c11
msg/async: race condition between reset_recv_state and shutdown_connections

when shutting down monitors and valgrind is involved, we can,
sometimes, to hit race condition and locks that causing the shutdown
process to hang for a long time.

reset_recv_state - issuing a message without proper locks that
causing the shutdown to hang during shutdown connection (drain network)

Fixes: https://tracker.ceph.com/issues/63501
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit b800149243b593ff7946d9a5df23f5a49247c0fd)
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc