Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_vdpa: don't warn when fail to disable vq

There's no guarantee that the device can disable a specific virtqueue
through set_vq_ready(). One example is the modern virtio-pci
device. So this patch removes the warning.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210104065503.199631-19-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Jason Wang and committed by
Michael S. Tsirkin
1628c687 fd502729

+1 -2
+1 -2
drivers/virtio/virtio_vdpa.c
··· 225 225 list_del(&info->node); 226 226 spin_unlock_irqrestore(&vd_dev->lock, flags); 227 227 228 - /* Select and deactivate the queue */ 228 + /* Select and deactivate the queue (best effort) */ 229 229 ops->set_vq_ready(vdpa, index, 0); 230 - WARN_ON(ops->get_vq_ready(vdpa, index)); 231 230 232 231 vring_del_virtqueue(vq); 233 232