提交 e62e560f 编写于 作者: D Darrick J. Wong 提交者: Al Viro

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: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 3ed47db3
...@@ -1656,6 +1656,9 @@ int vfs_dedupe_file_range(struct file *file, struct file_dedupe_range *same) ...@@ -1656,6 +1656,9 @@ int vfs_dedupe_file_range(struct file *file, struct file_dedupe_range *same)
mnt_drop_write_file(dst_file); mnt_drop_write_file(dst_file);
next_loop: next_loop:
fdput(dst_fd); fdput(dst_fd);
if (fatal_signal_pending(current))
goto out;
} }
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册