]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
xen-blkback: clear PF_NOFREEZE for xen_blkif_schedule()
authorJiri Kosina <jkosina@suse.cz>
Mon, 26 Oct 2015 05:47:21 +0000 (14:47 +0900)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 4 Jan 2016 17:21:24 +0000 (12:21 -0500)
xen_blkif_schedule() kthread calls try_to_freeze() at the beginning of
every attempt to purge the LRU. 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 xen_blkif_schedule() freezable (as it can
generate I/O during suspend).

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c

index a00d6c6c288057d67590e0f30bb9b22ba6031341..99b479f330af81a56216114eaf3add68cbed8351 100644 (file)
@@ -613,6 +613,7 @@ int xen_blkif_schedule(void *arg)
 
        xen_blkif_get(blkif);
 
+       set_freezable();
        while (!kthread_should_stop()) {
                if (try_to_freeze())
                        continue;