projects
/
linux-flexiantxendom0-3.2.10.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
virtio: balloon: let host know of updated balloon size before module removal
[linux-flexiantxendom0-3.2.10.git]
/
drivers
/
virtio
/
virtio_balloon.c
diff --git
a/drivers/virtio/virtio_balloon.c
b/drivers/virtio/virtio_balloon.c
index
c2d05a8
..
8807fe5
100644
(file)
--- a/
drivers/virtio/virtio_balloon.c
+++ b/
drivers/virtio/virtio_balloon.c
@@
-390,6
+390,7
@@
static void __devexit virtballoon_remove(struct virtio_device *vdev)
/* There might be pages left in the balloon: free them. */
while (vb->num_pages)
leak_balloon(vb, vb->num_pages);
+ update_balloon_size(vb);
/* Now we reset the device so we can clean up the queues. */
vdev->config->reset(vdev);