]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:27:30 +0000 (22:27 +0200)
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>
(cherry picked from commit a6e7af1288eeb7fca8361356998d31a92a291531)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/block/xen-blkback/blkback.c

index 9885f2dd739d7069ff8715fe36b4b1b25cc73965..522a49122b6fc1ff8dcb3e7de854cbf5662bcdd7 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;