mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
virtio: fix suspend when using virtio_balloon
Break out of wait_event_interruptible() if freezing has been requested, in the vballoon thread. Without this change vballoon refuses to stop and the system can't suspend. Signed-off-by: Marcelo Tosatti <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Cc: [email protected]
This commit is contained in:
parent
a489f0b555
commit
84a139a985
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,8 @@ static int balloon(void *_vballoon)
|
|||
try_to_freeze();
|
||||
wait_event_interruptible(vb->config_change,
|
||||
(diff = towards_target(vb)) != 0
|
||||
|| kthread_should_stop());
|
||||
|| kthread_should_stop()
|
||||
|| freezing(current));
|
||||
if (diff > 0)
|
||||
fill_balloon(vb, diff);
|
||||
else if (diff < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue