| To: | viro@xxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] vfs: abort dedupe loop if fatal signals are pending |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Fri, 22 Jan 2016 16:58:28 -0800 |
| Cc: | linux-fsdevel@xxxxxxxxxxxxxxx, david@xxxxxxxxxxxxx, linux-api@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, ebiggers3@xxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
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@xxxxxxxxxx>
---
fs/read_write.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/read_write.c b/fs/read_write.c
index aaaad52..aab334e 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -1617,6 +1617,9 @@ next_file:
mnt_drop_write_file(dst_file);
next_loop:
fdput(dst_fd);
+
+ if (fatal_signal_pending(current))
+ goto out;
}
out:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 8/9] vfs: hoist the btrfs deduplication ioctl to the vfs, Darrick J. Wong |
|---|---|
| Next by Date: | Re: [PATCH] vfs: abort dedupe loop if fatal signals are pending, Al Viro |
| Previous by Thread: | [PATCH 1/5] tools/mvtest: call out to the correct group sort program, Darrick J. Wong |
| Next by Thread: | Re: [PATCH] vfs: abort dedupe loop if fatal signals are pending, Al Viro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |