mirror of https://github.com/xemu-project/xemu.git
hw/virtio: Document virtio_queue_packed_empty_rcu is called within RCU
While virtio_queue_packed_empty_rcu() uses the '_rcu' suffix, it is not obvious it is called within rcu_read_lock(). All other functions from this file called with the RCU locked have a comment describing it. Document this one similarly for consistency. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210826172658.2116840-2-philmd@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
c2ea98c317
commit
7f51beddad
|
@ -634,6 +634,7 @@ static int virtio_queue_split_empty(VirtQueue *vq)
|
||||||
return empty;
|
return empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Called within rcu_read_lock(). */
|
||||||
static int virtio_queue_packed_empty_rcu(VirtQueue *vq)
|
static int virtio_queue_packed_empty_rcu(VirtQueue *vq)
|
||||||
{
|
{
|
||||||
struct VRingPackedDesc desc;
|
struct VRingPackedDesc desc;
|
||||||
|
|
Loading…
Reference in New Issue