]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: race condition between reset_recv_state and shutdown_connections 65785/head
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:56:58 +0000 (10:56 +0000)
commitec57e01b8d75f691de290dbdddb8aaf41dc6eabc
treea6b5ad3eeb5a1e7a6b53de8af6bc10bbbc1571f1
parent24275c42fd7d38f77d742f83a498bdaa93503d5e
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