]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
virtio: balloon: Allow stats update after restore from S4
authorAmit Shah <amit.shah@redhat.com>
Thu, 29 Mar 2012 07:18:19 +0000 (12:48 +0530)
committerAmit Shah <amit.shah@redhat.com>
Sat, 31 Mar 2012 02:39:50 +0000 (08:09 +0530)
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>
drivers/virtio/virtio_balloon.c

index 958e5129c6012560746643b9ec2c1de8ee350219..9f1bb36d67ffbbca45e755535f60c814111d5959 100644 (file)
@@ -405,14 +405,6 @@ static int virtballoon_thaw(struct virtio_device *vdev)
 
 static int virtballoon_restore(struct virtio_device *vdev)
 {
-       struct virtio_balloon *vb = vdev->priv;
-
-       /*
-        * If a request wasn't complete at the time of freezing, this
-        * could have been set.
-        */
-       vb->need_stats_update = 0;
-
        return restore_common(vdev);
 }
 #endif