From: Jiri Kosina Date: Mon, 26 Oct 2015 06:06:19 +0000 (+0900) Subject: btrfs: clear PF_NOFREEZE in cleaner_kthread() X-Git-Tag: v4.14-rc1~4163^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=696249132158014d594896df3a81390616069c5c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 86a11a9..2d46675 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;