From: Darrick J. Wong Date: Sat, 23 Jan 2016 00:58:28 +0000 (-0800) Subject: vfs: abort dedupe loop if fatal signals are pending X-Git-Tag: v4.5~241^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e62e560fc8b65ef5debc9041a792d18a8f98b2ca;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Al Viro --- diff --git a/fs/read_write.c b/fs/read_write.c index fa05985..324ec27 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -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: