common: stable-2.1 cherry-pick - #44
Merged
Merged
Conversation
Ref: DAOS-18692 Ref: #1 Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
* DAOS-18882 pmdk: rebuild heap_curr_allocated from on-media state rebuild heap_curr_allocated from on-media state if the counter has underflowed. Signed-off-by: Liang Zhen <gnailzenh@gmail.com> * obj: recalculate curr_allocated on underflow Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: fix copyrights Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: remove redundant comment Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: add unit test Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: fix Copyright Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: improve underflow detectio and... ... move recalculation to the getter. Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> Co-authored-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com> * obj: restore the warning message Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: remove redundant header Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: fixes + updated unit test Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> * obj: fix comments in the unit test Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> --------- Signed-off-by: Liang Zhen <gnailzenh@gmail.com> Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com> Co-authored-by: Jan Michalski <jan-marian.michalski@hpe.com> Co-authored-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
Use compare-and-swap loop in STATS_INC/DEC_persistent to avoid overflow-underflow race. Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
osalyk
approved these changes
Aug 5, 2026
osalyk
left a comment
Contributor
There was a problem hiding this comment.
@osalyk reviewed 20 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on grom72).
grom72
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is