Skip to content

obj: recalculate curr_allocated on underflow - 2nd#38

Merged
janekmi merged 2 commits intostable-2.1from
grom72/DAOS-18882-util_atomic_store_explicit64
Apr 27, 2026
Merged

obj: recalculate curr_allocated on underflow - 2nd#38
janekmi merged 2 commits intostable-2.1from
grom72/DAOS-18882-util_atomic_store_explicit64

Conversation

@grom72
Copy link
Copy Markdown
Contributor

@grom72 grom72 commented Apr 25, 2026

Avoid statistic overflow in case underflow is already detected.


This change is Reviewable

Avoid statistic overflow in case underflow is already detected

Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
@grom72 grom72 requested review from janekmi and osalyk April 25, 2026 06:59
Copy link
Copy Markdown
Contributor

@osalyk osalyk left a comment

Choose a reason for hiding this comment

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

:lgtm:

@osalyk reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on janekmi).

use CAS loop in STATS_INC/DEC_persistent to prevent spurious writes
on overflow/unerflow

Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
Copy link
Copy Markdown
Contributor

@janekmi janekmi left a comment

Choose a reason for hiding this comment

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

:lgtm:

@janekmi reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on grom72).

@janekmi janekmi merged commit 6805ed4 into stable-2.1 Apr 27, 2026
9 checks passed
Copy link
Copy Markdown
Contributor

@osalyk osalyk left a comment

Choose a reason for hiding this comment

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

@osalyk reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved.

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.

3 participants