Skip to content

Commit 96f5bd0

Browse files
committed
xen/balloon: fix balloon kthread freezing
Commit 8480ed9 ("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: 8480ed9 ("xen/balloon: use a kernel thread instead a workqueue") Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 794d5b8 commit 96f5bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/xen/balloon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ static int balloon_thread(void *unused)
522522
timeout = 3600 * HZ;
523523
credit = current_credit();
524524

525-
wait_event_interruptible_timeout(balloon_thread_wq,
526-
balloon_thread_cond(state, credit), timeout);
525+
wait_event_freezable_timeout(balloon_thread_wq,
526+
balloon_thread_cond(state, credit), timeout);
527527

528528
if (kthread_should_stop())
529529
return 0;

0 commit comments

Comments
 (0)