Commit 1628c687 authored by Jason Wang's avatar Jason Wang Committed by Michael S. Tsirkin

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: default avatarJason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210104065503.199631-19-jasowang@redhat.comSigned-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent fd502729
...@@ -225,9 +225,8 @@ static void virtio_vdpa_del_vq(struct virtqueue *vq) ...@@ -225,9 +225,8 @@ static void virtio_vdpa_del_vq(struct virtqueue *vq)
list_del(&info->node); list_del(&info->node);
spin_unlock_irqrestore(&vd_dev->lock, flags); spin_unlock_irqrestore(&vd_dev->lock, flags);
/* Select and deactivate the queue */ /* Select and deactivate the queue (best effort) */
ops->set_vq_ready(vdpa, index, 0); ops->set_vq_ready(vdpa, index, 0);
WARN_ON(ops->get_vq_ready(vdpa, index));
vring_del_virtqueue(vq); vring_del_virtqueue(vq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment