mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
block: Mark bdrv_filter_child() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_filter_child() need to hold a reader lock for the graph because it accesses bs->file/backing. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20231027155333.420094-12-kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
79bb762727
commit
ec82cc41a7
2 changed files with 4 additions and 4 deletions
4
block.c
4
block.c
|
|
@ -8491,8 +8491,8 @@ BdrvChild *bdrv_primary_child(BlockDriverState *bs)
|
|||
return found;
|
||||
}
|
||||
|
||||
static BlockDriverState *bdrv_do_skip_filters(BlockDriverState *bs,
|
||||
bool stop_on_explicit_filter)
|
||||
static BlockDriverState * GRAPH_RDLOCK
|
||||
bdrv_do_skip_filters(BlockDriverState *bs, bool stop_on_explicit_filter)
|
||||
{
|
||||
BdrvChild *c;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue