]> git.ipfire.org Git - people/arne_f/kernel.git/commit
virtio_balloon: don't softlockup on huge balloon changes.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 00:53:38 +0000 (11:23 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 12:11:30 +0000 (14:11 +0200)
commit983327a48a263bd65fa869a0aad76baaf75fff86
tree1d8dfd2284c812187522b45bbbcdbedef614ee15
parentef9146785e023ef84cb777aac6deae53c53a2b84
virtio_balloon: don't softlockup on huge balloon changes.

commit 1f74ef0f2d7d692fcd615621e0e734c3e7771413 upstream.

When adding or removing 100G from a balloon:

    BUG: soft lockup - CPU#0 stuck for 22s! [vballoon:367]

We have a wait_event_interruptible(), but the condition is always true
(more ballooning to do) so we don't ever sleep.  We also have a
wait_event() for the host to ack, but that is also always true as QEMU
is synchronous for balloon operations.

Reported-by: Gopesh Kumar Chaudhary <gopchaud@in.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virtio/virtio_balloon.c