Skip to content

Commit e47d854

Browse files
committed
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 <[email protected]>
1 parent fa2a451 commit e47d854

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/virtio/virtio_balloon.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,6 @@ static int virtballoon_thaw(struct virtio_device *vdev)
405405

406406
static int virtballoon_restore(struct virtio_device *vdev)
407407
{
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-
416408
return restore_common(vdev);
417409
}
418410
#endif

0 commit comments

Comments
 (0)