summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-11-13 21:52:42 +0000
committerDavid Sterba <dsterba@suse.com>2026-11-23 19:53:01 +0100
commit42de7db475fe895d97934b73a06527a2e4912d93 (patch)
tree6a1eb71f3d036e2eb26936c0c32e5cb5dc06ed15 /tools/perf/scripts/python
parent85c98fd512bb3e2f326f1a1cac30f2fb0af30c6a (diff)
btrfs: fix incorrect task accounting on error during io_uring read
We are passing 'ret' to add_rchar() under the 'out' label, which is meant to take a byte count for accounting, however if we got an error we pass it to add_rchar() too, which is just wrong. Fix thing by passing 'ret' only when it's not an error. Fixes: 34310c442e17 ("btrfs: add io_uring command for encoded reads (ENCODED_READ ioctl)") Link: https://sashiko.dev/#/bug/linux-beb0369e-eb47-41d3-86c1-e79cdc2de157 Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions