diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-12-22 12:28:30 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 06:14:45 +0100 |
commit | f8fb5bc23a50a5398aa31a4e8c6dbbef53d2dec6 (patch) | |
tree | a8f466179ba3afdce265607703ed280231e04e3c /drivers/net/virtio_net.c | |
parent | virtio: blk: Move vq initialization to separate function (diff) | |
download | linux-f8fb5bc23a50a5398aa31a4e8c6dbbef53d2dec6.tar.xz linux-f8fb5bc23a50a5398aa31a4e8c6dbbef53d2dec6.zip |
virtio: blk: Add freeze, restore handlers to support S4
Delete the vq and flush any pending requests from the block queue on the
freeze callback to prepare for hibernation.
Re-create the vq in the restore callback to resume normal function.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions