]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
AsyncMessenger: l_msgr_active_connections numerical anomaly
authorMohit Agrawal <moagrawa@redhat.com>
Mon, 10 Jun 2024 05:29:54 +0000 (10:59 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Wed, 23 Oct 2024 09:58:16 +0000 (15:28 +0530)
commit840836cacfbeaeeb70029d6389a210961dea1574
treec70c5fc39db2be1aa4ada6d8d66a57b3fff2f18d
parenta842331f77886c5048ff066d5a24da5e52f19c98
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>
(cherry picked from commit b931251b2594eec601d39771b731c14119995181)
src/msg/async/AsyncMessenger.cc