Skip to content

tentacle: bluestore/BlueFS: fix bytes_written_slow counter with aio_write#66355

Merged
NitzanMordhai merged 1 commit intoceph:tentaclefrom
k0ste:wip-73741-tentacle
Feb 8, 2026
Merged

tentacle: bluestore/BlueFS: fix bytes_written_slow counter with aio_write#66355
NitzanMordhai merged 1 commit intoceph:tentaclefrom
k0ste:wip-73741-tentacle

Conversation

@k0ste
Copy link
Copy Markdown
Contributor

@k0ste k0ste commented Nov 21, 2025

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

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)
@k0ste k0ste requested a review from a team as a code owner November 21, 2025 12:41
@github-actions github-actions bot added this to the tentacle milestone Nov 21, 2025
@ifed01
Copy link
Copy Markdown
Contributor

ifed01 commented Nov 21, 2025

jenkins test api

@NitzanMordhai
Copy link
Copy Markdown
Contributor

@NitzanMordhai NitzanMordhai merged commit f10970b into ceph:tentacle Feb 8, 2026
12 checks passed
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.

5 participants