]> git.baikalelectronics.ru Git - kernel.git/commit
9p/trans_virtio: enable VQs early
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 23:52:31 +0000 (10:22 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:55:04 +0000 (10:25 +1030)
commited0b30648c97624d306baa6596ce8c7e24f39c56
tree3c884644f7afc11d2c157bcc3b6518529adb2012
parentf4a0ad56d4f8eb39839b63dfd55850dcb57b7034
9p/trans_virtio: enable VQs early

virtio spec requires drivers to set DRIVER_OK before using VQs.
This is set automatically after probe returns, but virtio 9p device
adds self to channel list within probe, at which point VQ can be
used in violation of the spec.

To fix, call virtio_device_ready before using VQs.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
net/9p/trans_virtio.c