From: Xuan Zhuo Date: Mon, 1 Aug 2022 06:38:23 +0000 (+0800) Subject: virtio_ring: update the document of the virtqueue_detach_unused_buf for queue reset X-Git-Tag: v6.6.17~6796^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a62eecb3a9c086fa7b47c5cc74ab8ca4e655a682;p=platform%2Fkernel%2Flinux-rpi.git virtio_ring: update the document of the virtqueue_detach_unused_buf for queue reset Added documentation for virtqueue_detach_unused_buf, allowing it to be called on queue reset. Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20220801063902.129329-4-xuanzhuo@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index a5ec724..1702438 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -2130,8 +2130,8 @@ EXPORT_SYMBOL_GPL(virtqueue_enable_cb_delayed); * @_vq: the struct virtqueue we're talking about. * * Returns NULL or the "data" token handed to virtqueue_add_*(). - * This is not valid on an active queue; it is useful only for device - * shutdown. + * This is not valid on an active queue; it is useful for device + * shutdown or the reset queue. */ void *virtqueue_detach_unused_buf(struct virtqueue *_vq) {