summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-09 16:43:44 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-02 10:34:24 +0100
commit9f372e86b9bd1914df58c8f6e30939b7a224c6b0 (patch)
tree11deb97dc7ad525b88458f700ed136f4c194ef87 /tools/perf/scripts/python/stackcollapse.py
parentf6174bb982a831b96b8ebbd7c4aabe29d5ad97b7 (diff)
btrfs: avoid monopolizing a core when activating a swap file
commit 2c8507c63f5498d4ee4af404a8e44ceae4345056 upstream. During swap activation we iterate over the extents of a file and we can have many thousands of them, so we can end up in a busy loop monopolizing a core. Avoid this by doing a voluntary reschedule after processing each extent. CC: stable@vger.kernel.org # 5.4+ Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions