Skip to content

squid: AsyncMessenger: Don't decrease l_msgr_active_connections if it is negative - #60447

Merged
SrinivasaBharath merged 1 commit into
ceph:squidfrom
mohit84:wip-68665-squid
Dec 5, 2024
Merged

SrinivasaBharath merged 1 commit into
ceph:squidfrom
mohit84:wip-68665-squid

Conversation

@mohit84

@mohit84 mohit84 commented Oct 23, 2024

Copy link
Copy Markdown
Contributor

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 <[email protected]>
(cherry picked from commit b931251)
@mohit84
mohit84 requested a review from a team as a code owner October 23, 2024 10:10
@github-actions github-actions Bot added the core label Oct 23, 2024
@github-actions github-actions Bot added this to the squid milestone Oct 23, 2024

@NitzanMordhai NitzanMordhai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ljflores

Copy link
Copy Markdown
Member

afreen23 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Jul 29, 2026
squid: AsyncMessenger: Don't decrease l_msgr_active_connections if it is negative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants