summaryrefslogtreecommitdiffstats
path: root/fs/read_write.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-01-22 16:58:28 -0800
committerAl Viro <viro@zeniv.linux.org.uk>2016-01-22 20:29:55 -0500
commite62e560fc8b65ef5debc9041a792d18a8f98b2ca (patch)
tree3161d9f9ec12f4347d0f2a3e10d203fc36c1a94e /fs/read_write.c
parent3ed47db34f480df7caf44436e3e63e555351ae9a (diff)
downloadop-kernel-dev-e62e560fc8b65ef5debc9041a792d18a8f98b2ca.zip
op-kernel-dev-e62e560fc8b65ef5debc9041a792d18a8f98b2ca.tar.gz
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>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r--fs/read_write.c3
1 files changed, 3 insertions, 0 deletions
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:
OpenPOWER on IntegriCloud