]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: clear PF_NOFREEZE in cleaner_kthread()
authorJiri Kosina <jkosina@suse.cz>
Mon, 26 Oct 2015 06:06:19 +0000 (15:06 +0900)
committerChris Mason <clm@fb.com>
Tue, 27 Oct 2015 02:42:30 +0000 (19:42 -0700)
commit01c010bb9c5d1baa08b5065e0d07f166257fc74a
treeab0b14691bc2b085430150e3743750456aab848d
parent6c7ffff15f0fcedaf6f4035683aa4766a6c4f3fe
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>
fs/btrfs/disk-io.c