]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
AsyncMessenger: l_msgr_active_connections numerical anomaly 57951/head
authorMohit Agrawal <moagrawa@redhat.com>
Mon, 10 Jun 2024 05:29:54 +0000 (10:59 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Tue, 11 Jun 2024 05:42:10 +0000 (11:12 +0530)
commitb931251b2594eec601d39771b731c14119995181
tree233a6b13e7303838e0db7987d6c73db11ee28987
parent27e97f278c95cdc604142bf6e0cf9b30660ba542
AsyncMessenger:  l_msgr_active_connections numerical anomaly

The counter (msgr_active_connections) can be an anomaly in case
if the counter is decrese before increase and initial value is 0. It can be
happen while the server daemon is blocked on accept_conn and client sends
a disconnect request.To avoid the situation increase the counter at first
step in add_accept during accepting a request so that the counter would not
be 0 during the decrease operation.

Fixes: https://tracker.ceph.com/issues/66231
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
src/msg/async/AsyncMessenger.cc