Commit e47d854e authored by Amit Shah's avatar Amit Shah

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: default avatarAmit Shah <amit.shah@redhat.com>
parent fa2a4519
...@@ -405,14 +405,6 @@ static int virtballoon_thaw(struct virtio_device *vdev) ...@@ -405,14 +405,6 @@ static int virtballoon_thaw(struct virtio_device *vdev)
static int virtballoon_restore(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); return restore_common(vdev);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment