]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
virtio: balloon: Allow stats update after restore from S4
authorAmit Shah <amit.shah@redhat.com>
Thu, 29 Mar 2012 08:28:07 +0000 (13:58 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 29 Mar 2012 11:47:13 +0000 (13:47 +0200)
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>
Signed-off-by: Michael S. Tsirkin <mst@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