]> git.baikalelectronics.ru Git - kernel.git/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)
commit4f51138fd96e1eb192599f30b4011f0f818b9d33
tree007560a7b5aeae160aa1760580e3acf2507a80cc
parent8a048ca13d2ac4469653332c189d977180db35e0
xen/balloon: fix balloon kthread freezing

Commit afc278ca79eca7 ("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: afc278ca79eca7 ("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