Skip to content

Commit 6962491

Browse files
Jiri Kosinamasoncl
authored andcommitted
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 <[email protected]> Signed-off-by: Chris Mason <[email protected]>
1 parent 0a0e8b8 commit 6962491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/btrfs/disk-io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,7 @@ static int cleaner_kthread(void *arg)
17621762
int again;
17631763
struct btrfs_trans_handle *trans;
17641764

1765+
set_freezable();
17651766
do {
17661767
again = 0;
17671768

0 commit comments

Comments
 (0)