mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
vfs: abort dedupe loop if fatal signals are pending
If the program running dedupe receives a fatal signal during the dedupe loop, we should bail out to avoid tying up the system. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3ed47db34f
commit
e62e560fc8
1 changed files with 3 additions and 0 deletions
|
@ -1656,6 +1656,9 @@ next_file:
|
|||
mnt_drop_write_file(dst_file);
|
||||
next_loop:
|
||||
fdput(dst_fd);
|
||||
|
||||
if (fatal_signal_pending(current))
|
||||
goto out;
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
Loading…
Add table
Reference in a new issue