virtio: Keep vring_del_virtqueue() mirror of VQ create
authorParav Pandit <parav@nvidia.com>
Wed, 21 Jul 2021 14:26:46 +0000 (17:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Aug 2021 15:50:55 +0000 (11:50 -0400)
commit249f255476328e597a598ccdbd4414e51a5b6d6e
tree38b79bff52a3006e22ccaabef67be83919e2cdff
parent60f0779862e4ab943810187752c462e85f5fa371
virtio: Keep vring_del_virtqueue() mirror of VQ create

Keep the vring_del_virtqueue() mirror of the create routines.
i.e. to delete list entry first as it is added last during the create
routine.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Link: https://lore.kernel.org/r/20210721142648.1525924-3-parav@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c