block: Mark bdrv_query_block_graph_info() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2023 11:57:48 +0000 (13:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:54 +0000 (14:16 +0200)
commit4f0bef8b36eb33efbba0a216b233265d734bdbfb
treeb995bdf9d339ce44b3246a06f24793c84baae3d4
parent6ec75a6a3ed9d6ff3161d1f97c497909906495bd
block: Mark bdrv_query_block_graph_info() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_query_block_graph_info() need to hold a reader lock for the graph
because it accesses the children list of a node.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230504115750.54437-19-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/block/qapi.h
qemu-img.c