summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>2022-08-01 14:38:23 +0800
committerMichael S. Tsirkin <mst@redhat.com>2022-08-11 04:06:38 -0400
commita62eecb3a9c086fa7b47c5cc74ab8ca4e655a682 (patch)
tree628e13e9ef9a2dd573f2dd921970347be32f5342 /drivers/virtio
parent3086e9fc9173166774652a488467e4176ee1c81b (diff)
downloadlinux-stable-a62eecb3a9c086fa7b47c5cc74ab8ca4e655a682.tar.gz
linux-stable-a62eecb3a9c086fa7b47c5cc74ab8ca4e655a682.tar.bz2
linux-stable-a62eecb3a9c086fa7b47c5cc74ab8ca4e655a682.zip
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 <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220801063902.129329-4-xuanzhuo@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_ring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index a5ec724c01d8..17024389b62c 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)
{