diff options
| author | Daniel Vacek <neelx@suse.com> | 2025-01-15 16:24:58 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-03-17 14:44:42 +0100 |
| commit | 96b2854de8889c048ff6017413a1219fb275014a (patch) | |
| tree | bcf52da4208670e4421a281ef3d28d3086c6b0d2 /tools/perf/scripts/python/flamegraph.py | |
| parent | Linux 6.14-rc7 (diff) | |
| download | linux-96b2854de8889c048ff6017413a1219fb275014a.tar.gz linux-96b2854de8889c048ff6017413a1219fb275014a.zip | |
btrfs: keep private struct on stack for sync reads in btrfs_encoded_read_regular_fill_pages()
Only allocate the btrfs_encoded_read_private structure for asynchronous
(io_uring) mode.
There's no need to allocate an object from slab in the synchronous mode. In
such a case stack can be happily used as it used to be before 68d3b27e05c7
("btrfs: move priv off stack in btrfs_encoded_read_regular_fill_pages()")
which was a preparation for the async mode.
While at it, fix the comment to reflect the atomic => refcount change in
d29662695ed7 ("btrfs: fix use-after-free waiting for encoded read endios").
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Daniel Vacek <neelx@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
