vringh: explain more about cleaning riov and wiov
authorStefano Garzarella <sgarzare@redhat.com>
Mon, 15 Mar 2021 16:34:40 +0000 (17:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:53 +0000 (04:55 -0400)
commit69c13c58bd10f036d6e697e664948952e61acfb1
treeefe6c7b1cf26981ec7b234b04f7bf6a8c13c63e8
parentbbc2c372a83d74d5499ad21d0ade2b71f5bde620
vringh: explain more about cleaning riov and wiov

riov and wiov can be reused with subsequent calls of vringh_getdesc_*().

Let's add a paragraph in the documentation of these functions to better
explain when riov and wiov need to be cleaned up.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-5-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vringh.c