summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDaniel Vacek <neelx@suse.com>2026-09-02 15:56:27 +0200
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:20 +0200
commite54f700d6ae3203221745c168dae20d88f2be4f1 (patch)
tree4843be93ffee0f44c62113ce800a079254fc3c5f /tools/perf/scripts/python
parent57c6777ebd249f79bb935366cd8cbe28d06f6101 (diff)
downloadlinux-e54f700d6ae3203221745c168dae20d88f2be4f1.tar.gz
linux-e54f700d6ae3203221745c168dae20d88f2be4f1.zip
btrfs: use bio::remaining for async checksumming synchronization
We can use bio::remaining counter to sync the offloaded checksumming. As a result we can slim down the btrfs_bio structure by 24 bytes and simplify the code a bit. Difference in pahole output: - /* size: 328, cachelines: 6, members: 15 */ + /* size: 304, cachelines: 5, members: 14 */ Moreover this will allow us enabling async checksumming with encryption where we need to checksum the bounce bio instead of our regular one embedded in btrfs_bio. And so we need to extend it's lifetime. This is the preferred way to do so. This also fixes a bug in experimental build where the async checksumming was using the system workqueue instead of fs_info::endio_workers. Fixes: dd57c78aec39 ("btrfs: introduce btrfs_bio::async_csum") Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Daniel Vacek <neelx@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions