]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 00:57:55 +0000 (11:27 +1030)
commit1f74ef0f2d7d692fcd615621e0e734c3e7771413
tree697a88da1944bc02ba82afd3758d01fb1b2f556a
parent5e37f67063a14450f1fff3baee81efe7c146592a
virtio_balloon: don't softlockup on huge balloon changes.

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