diff options
author | Jiri Kosina <jkosina@suse.cz> | 2015-10-26 15:06:19 +0900 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-10-26 19:42:30 -0700 |
commit | 696249132158014d594896df3a81390616069c5c (patch) | |
tree | ab0b14691bc2b085430150e3743750456aab848d | |
parent | 0a0e8b89389266bed9cc074c57ea662e4b9b2621 (diff) | |
download | linux-stable-696249132158014d594896df3a81390616069c5c.tar.gz linux-stable-696249132158014d594896df3a81390616069c5c.tar.bz2 linux-stable-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>
-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; |