]> git.ipfire.org Git - thirdparty/linux.git/commit
virtio_ring: unify logic of virtqueue_poll() and more_used()
authorJason Wang <jasowang@redhat.com>
Tue, 30 Dec 2025 06:46:33 +0000 (14:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 31 Dec 2025 10:39:17 +0000 (05:39 -0500)
commit40da006f137dbbd16b657da37f6ea4fb8ad13671
tree9f344a8b3c6c713ee2d00be51769537a40c1a637
parent79f6d682937dd91c5ed3a1050fa99cb4369dd720
virtio_ring: unify logic of virtqueue_poll() and more_used()

This patch unifies the logic of virtqueue_poll() and more_used() for
better code reusing and ease the future in order implementation.

Acked-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251230064649.55597-4-jasowang@redhat.com>
drivers/virtio/virtio_ring.c