Skip to content

Commit

Permalink
btrfs: clear PF_NOFREEZE in cleaner_kthread()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Kosina authored and Chris Mason committed Oct 27, 2015
1 parent 0a0e8b8 commit 6962491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,7 @@ static int cleaner_kthread(void *arg)
int again;
struct btrfs_trans_handle *trans;

set_freezable();
do {
again = 0;

Expand Down

0 comments on commit 6962491

Please sign in to comment.