summaryrefslogtreecommitdiff
path: root/scripts/extract-fwblobs
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-09 19:31:41 +0300
committerDavid Sterba <dsterba@suse.com>2024-12-24 00:04:38 +0300
commit9a45022a0efadd99bcc58f7f1cc2b6fb3b808c40 (patch)
treedc7bfc94b966ba8a75e1571b7e62a644dec1629b /scripts/extract-fwblobs
parent03018e5d8508254534511d40fb57bc150e6a87f2 (diff)
downloadlinux-9a45022a0efadd99bcc58f7f1cc2b6fb3b808c40.tar.xz
btrfs: allow swap activation to be interruptible
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>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions