]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: race condition between reset_recv_state and shutdown_connections 61021/head
authorNitzan Mordechai <nmordech@redhat.com>
Tue, 10 Dec 2024 09:04:34 +0000 (09:04 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 15 Dec 2024 11:07:01 +0000 (11:07 +0000)
commitb800149243b593ff7946d9a5df23f5a49247c0fd
tree862d71668d4ef64e5d0a33f8982f8b0bae867d69
parent5668807051302e6080f637d92e0f25ef055e42a3
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>
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc