]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 5 Nov 2021 08:12:46 +0000 (09:12 +0100)
commitf45366dc56efdb5cb6403c4508c3ca5338a545c5
treefa65c6a8167cfd3b6e3b42ba267ec2d7658de21f
parent073bdc9331067c270f85013c1bd3d649d3bea9fa
xen/balloon: fix balloon kthread freezing

BugLink: https://bugs.launchpad.net/bugs/1947886
commit 96f5bd03e1be606987644b71899ea56a8d05f825 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/xen/balloon.c