diff options
author | Jiri Kosina <jkosina@suse.cz> | 2015-10-26 07:06:19 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-10-27 03:42:30 +0100 |
commit | 696249132158014d594896df3a81390616069c5c (patch) | |
tree | ab0b14691bc2b085430150e3743750456aab848d /fs/btrfs | |
parent | btrfs: qgroup: Don't copy extent buffer to do qgroup rescan (diff) | |
download | linux-696249132158014d594896df3a81390616069c5c.tar.xz linux-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 'fs/btrfs')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
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; |