]> 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)
commitd655b297a2d40082a07472aea9ae3b87db8111aa
treea8f466179ba3afdce265607703ed280231e04e3c
parent9f93b093facd35d1f204ac9afb3ec90138db68fe
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