tentacle: bluestore/BlueFS: fix bytes_written_slow counter with aio_write#66355
Merged
NitzanMordhai merged 1 commit intoceph:tentaclefrom Feb 8, 2026
Merged
tentacle: bluestore/BlueFS: fix bytes_written_slow counter with aio_write#66355NitzanMordhai merged 1 commit intoceph:tentaclefrom
NitzanMordhai merged 1 commit intoceph:tentaclefrom
Conversation
The bytes_written_slow performance counter was incorrectly reporting 0 when using async I/O. When aio_write() is called with a bufferlist, it uses claim_append() to transfer ownership of the buffer to the aio structure, leaving the source bufferlist empty. Using t.length() after aio_write() returns 0 instead of the actual bytes written. Fix by using the pre-calculated x_len value which contains the actual write size and is not affected by the buffer ownership transfer. Fixes: https://tracker.ceph.com/issues/73735 Signed-off-by: chungfengz <chungfengz@synology.com> (cherry picked from commit 5aa5b03)
Contributor
|
jenkins test api |
ifed01
approved these changes
Nov 21, 2025
Contributor
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.
backport tracker: https://tracker.ceph.com/issues/73741
backport of #66147
parent tracker: https://tracker.ceph.com/issues/73735
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh