From: Jiri Kosina Date: Mon, 26 Oct 2015 05:47:21 +0000 (+0900) Subject: xen-blkback: clear PF_NOFREEZE for xen_blkif_schedule() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6e7af1288eeb7fca8361356998d31a92a291531;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git xen-blkback: clear PF_NOFREEZE for xen_blkif_schedule() 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 Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c index a00d6c6c2880..99b479f330af 100644 --- a/drivers/block/xen-blkback/blkback.c +++ b/drivers/block/xen-blkback/blkback.c @@ -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;