diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-12-09 19:43:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-02 12:34:24 +0300 |
commit | 9f372e86b9bd1914df58c8f6e30939b7a224c6b0 (patch) | |
tree | 11deb97dc7ad525b88458f700ed136f4c194ef87 /scripts/generate_rust_analyzer.py | |
parent | f6174bb982a831b96b8ebbd7c4aabe29d5ad97b7 (diff) | |
download | linux-9f372e86b9bd1914df58c8f6e30939b7a224c6b0.tar.xz |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions