aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2015-10-26 15:06:19 +0900
committerChris Mason <clm@fb.com>2015-10-26 19:42:30 -0700
commit696249132158014d594896df3a81390616069c5c (patch)
treeab0b14691bc2b085430150e3743750456aab848d /fs/btrfs/disk-io.c
parentbtrfs: qgroup: Don't copy extent buffer to do qgroup rescan (diff)
downloadlinux-dev-696249132158014d594896df3a81390616069c5c.tar.xz
linux-dev-696249132158014d594896df3a81390616069c5c.zip
btrfs: clear PF_NOFREEZE in cleaner_kthread()
cleaner_kthread() kthread calls try_to_freeze() at the beginning of every cleanup attempt. This operation can't ever succeed though, as the kthread hasn't marked itself as freezable. Before (hopefully eventually) kthread freezing gets converted to fileystem freezing, we'd rather mark cleaner_kthread() freezable (as my understanding is that it can generate filesystem I/O during suspend). Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 86a11a902fcf..2d4667594681 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1762,6 +1762,7 @@ static int cleaner_kthread(void *arg)
int again;
struct btrfs_trans_handle *trans;
+ set_freezable();
do {
again = 0;