virtio: fix suspend when using virtio_balloon
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 17 Apr 2009 00:14:04 +0000 (21:14 -0300)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 19 Apr 2009 13:44:01 +0000 (22:44 +0930)
commit84a139a985300901dfad99bd93c7345d180af860
tree62a8921435f17551db2f26c8f0755f4ab508f537
parenta489f0b555b753f9df8ddc24c7e74f657ef7ee7b
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 <mtosatti@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
drivers/virtio/virtio_balloon.c