summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-10-28 16:06:27 +0000
committerDavid Sterba <dsterba@suse.com>2026-11-09 18:50:58 +0100
commitbb66a38f5812f2c04abd4eb6e586a12b5a95172a (patch)
treee1c538c57315edff66b612a29b75af41189e5234 /tools/perf/scripts/python/bin
parent04df03585f0d8ef2727e043119bba2cdfac2d8d7 (diff)
btrfs: zstd: prevent leak of workspace below maximum level
When putting a workspace we always protect the workspace for the maximum level from reclaim, since it can be used not just for that level but as well for any level below it. However the logic is flawed because if we do the put for a workspace at level 10 for example (maximum is level 15) and there is currently no idle workspace for the maximum level because all are currently being used, we don't add the workspace to the LRU list and that can result in leaking it if we don't get more compression or decompression requests for level 10 or any level below 10. Fix this by skipping the addition to the LRU list only if the level of the workspace matches the maximum level too (besides the list of idle workspaces for the maximum level being empty). Fixes: 3f93aef535c8 ("btrfs: add zstd compression level support") 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/bin')
0 files changed, 0 insertions, 0 deletions