mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
xen/balloon: fix balloon kthread freezing
Commit8480ed9c2b("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:8480ed9c2b("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]>
This commit is contained in:
1 parent
794d5b8a49
commit
96f5bd03e1
1 file changed
+2
-2
@@ -522,8 +522,8 @@ static int balloon_thread(void *unused)
|
||||
timeout = 3600 * HZ;
|
||||
credit = current_credit();
|
||||
|
||||
wait_event_interruptible_timeout(balloon_thread_wq,
|
||||
balloon_thread_cond(state, credit), timeout);
|
||||
wait_event_freezable_timeout(balloon_thread_wq,
|
||||
balloon_thread_cond(state, credit), timeout);
|
||||
|
||||
if (kthread_should_stop())
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user