diff options
| author | Filipe Manana <fdmanana@suse.com> | 2024-12-09 16:31:41 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-09 13:33:43 +0100 |
| commit | 93d7d212c6ea517b748bb3891784e5a404afcfb0 (patch) | |
| tree | 2b04c7a9929efd4df17020cd8f976d26df931dc3 /scripts/git.orderFile | |
| parent | 4ac8e8bf70b436294534d06e5d500e950e20c13d (diff) | |
| download | linux-93d7d212c6ea517b748bb3891784e5a404afcfb0.tar.gz linux-93d7d212c6ea517b748bb3891784e5a404afcfb0.tar.bz2 linux-93d7d212c6ea517b748bb3891784e5a404afcfb0.zip | |
btrfs: allow swap activation to be interruptible
[ Upstream commit 9a45022a0efadd99bcc58f7f1cc2b6fb3b808c40 ]
During swap activation we iterate over the extents of a file, then do
several checks for each extent, some of which may take some significant
time such as checking if an extent is shared. Since a file can have
many thousands of extents, this can be a very slow operation and it's
currently not interruptible. I had a bug during development of a previous
patch that resulted in an infinite loop when iterating the extents, so
a core was busy looping and I couldn't cancel the operation, which is very
annoying and requires a reboot. So make the loop interruptible by checking
for fatal signals at the end of each iteration and stopping immediately if
there is one.
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: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
