]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: blk: Add freeze, restore handlers to support S4
authorAmit Shah <amit.shah@redhat.com>
Thu, 22 Dec 2011 11:28:30 +0000 (16:58 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:45 +0000 (15:44 +1030)
commitb597a0236c76fca0fe7f1e3a3fb98c246fa6e421
treea8f466179ba3afdce265607703ed280231e04e3c
parentd3ca7be4deb88c3891d56b2691c879c17135369a
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>
drivers/block/virtio_blk.c