Skip to content

Commit

Permalink
virtio: balloon: Allow stats update after restore from S4
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit Shah committed Mar 31, 2012
1 parent fa2a451 commit e47d854
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/virtio/virtio_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e47d854

Please sign in to comment.