diff options
author | Amit Shah <amit.shah@redhat.com> | 2012-03-29 03:18:19 -0400 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2012-03-30 22:39:50 -0400 |
commit | e47d854e57698d3be4579d2118f6057f9f12a17c (patch) | |
tree | 7f4eb44f957135d3237a9c3b092698bd81b8d8a8 /drivers/virtio | |
parent | fa2a4519cb6ad94224eb56a1341fff570fd44ea1 (diff) |
virtio: balloon: Allow stats update after restore from S4
There's no reason stats update after restore can't work. If a host
requested for stats, and before servicing the request, the guest entered
S4, upon restore, the stats request can still be processed and sent off
to the host.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'drivers/virtio')
-rw-r--r-- | drivers/virtio/virtio_balloon.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 958e5129c601..9f1bb36d67ff 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c | |||
@@ -405,14 +405,6 @@ static int virtballoon_thaw(struct virtio_device *vdev) | |||
405 | 405 | ||
406 | static int virtballoon_restore(struct virtio_device *vdev) | 406 | static int virtballoon_restore(struct virtio_device *vdev) |
407 | { | 407 | { |
408 | struct virtio_balloon *vb = vdev->priv; | ||
409 | |||
410 | /* | ||
411 | * If a request wasn't complete at the time of freezing, this | ||
412 | * could have been set. | ||
413 | */ | ||
414 | vb->need_stats_update = 0; | ||
415 | |||
416 | return restore_common(vdev); | 408 | return restore_common(vdev); |
417 | } | 409 | } |
418 | #endif | 410 | #endif |