]> www.infradead.org Git - users/dwmw2/linux.git/commit
tools/virtio: fix virtio_test execution
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 18 Jan 2022 15:06:31 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:39:47 +0000 (14:39 +0200)
commit3c8447192532f6daf9c553af9a14431d2016e62c
treef3977f6ef8d3f169da288263d3b95b5046bfe71a
parent6d98dc2369b1d93e24a7f12e2ebf0754a8255cdd
tools/virtio: fix virtio_test execution

[ Upstream commit 32f1b53fe8f03d962423ba81f8e92af5839814da ]

virtio_test hangs on __vring_new_virtqueue() because `vqs_list_lock`
is not initialized.

Let's initialize it in vdev_info_init().

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20220118150631.167015-1-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/virtio/virtio_test.c