virtio: fix suspend when using virtio_balloon
commit7b0e3850488bbd218b6ea4cc0e5c6e549995a6f7
authorMarcelo Tosatti <mtosatti@redhat.com>
Sun, 19 Apr 2009 18:05:04 +0000 (19 18:05 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:37:04 +0000 (27 10:37 -0700)
treeb73b749ad3d5369ec2b1aa1f7a733ac4d7fd5da3
parentcbe8fe4ae7f8bcc410c105810b263abf24439a53
virtio: fix suspend when using virtio_balloon

upstream commit: 84a139a985300901dfad99bd93c7345d180af860

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 <mtosatti@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/virtio/virtio_balloon.c