]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_scsi: enable VQs early on restore
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 23:52:32 +0000 (10:22 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:55:08 +0000 (10:25 +1030)
commit1f3a6dfc8bd9fd4924dab6a764c8641e41aa2cc1
tree6c10b56f785e5476ca88b00b624fe871538fdd0b
parent43eca9cce624aa6c74fbaadc0d79549b413a4d39
virtio_scsi: enable VQs early on restore

virtio spec requires drivers to set DRIVER_OK before using VQs.
This is set automatically after restore returns, virtio scsi violated
this rule on restore by kicking event vq within restore.

To fix, call virtio_device_ready before using event queue.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/scsi/virtio_scsi.c