summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/virtio_scsi.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-10-15 01:52:32 +0200
committerRusty Russell <rusty@rustcorp.com.au>2014-10-15 01:55:07 +0200
commit6d62c37f1991aafc872f8d8be8ac60e57ede8605 (patch)
tree346383120729b4e6a49271289d617e0c8f487d48 /drivers/scsi/virtio_scsi.c
parentvirtio_scsi: move kick event out from virtscsi_init (diff)
downloadlinux-6d62c37f1991aafc872f8d8be8ac60e57ede8605.tar.xz
linux-6d62c37f1991aafc872f8d8be8ac60e57ede8605.zip
virtio_blk: enable VQs early on restore
virtio spec requires drivers to set DRIVER_OK before using VQs. This is set automatically after restore returns, virtio block violated this rule on restore by restarting queues, which might in theory cause the VQ to be used directly within restore. To fix, call virtio_device_ready before using starting queues. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
0 files changed, 0 insertions, 0 deletions