]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
vdpa: document set_group_asid thread safety
authorEugenio Pérez <eperezma@redhat.com>
Mon, 19 Jan 2026 14:32:58 +0000 (15:32 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Jan 2026 20:32:17 +0000 (15:32 -0500)
Document that the function races with the check of DRIVER_OK.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260119143306.1818855-6-eperezma@redhat.com>

include/linux/vdpa.h

index 4cf21d6e9cfde269742048899f0b0cff4c4a1ae7..2bfe3baa63f423eb2fd93baa0aa5514dc5b266ea 100644 (file)
@@ -312,7 +312,9 @@ struct vdpa_map_file {
  *                             @idx: virtqueue index
  *                             Returns the affinity mask
  * @set_group_asid:            Set address space identifier for a
- *                             virtqueue group (optional)
+ *                             virtqueue group (optional).  Caller must
+ *                             prevent this from being executed concurrently
+ *                             with set_status.
  *                             @vdev: vdpa device
  *                             @group: virtqueue group
  *                             @asid: address space id for this group