]> git.itanic.dy.fi Git - linux-stable/commit
xen/balloon: fix balloon kthread freezing
authorJuergen Gross <jgross@suse.com>
Mon, 20 Sep 2021 10:03:45 +0000 (12:03 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 21 Sep 2021 07:39:04 +0000 (09:39 +0200)
commit96f5bd03e1be606987644b71899ea56a8d05f825
tree007560a7b5aeae160aa1760580e3acf2507a80cc
parent794d5b8a497ff053f56856472e2fae038fa761aa
xen/balloon: fix balloon kthread freezing

Commit 8480ed9c2bbd56 ("xen/balloon: use a kernel thread instead a
workqueue") switched the Xen balloon driver to use a kernel thread.
Unfortunately the patch omitted to call try_to_freeze() or to use
wait_event_freezable_timeout(), causing a system suspend to fail.

Fixes: 8480ed9c2bbd56 ("xen/balloon: use a kernel thread instead a workqueue")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210920100345.21939-1-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/balloon.c