]> git.proxmox.com Git - mirror_qemu.git/commit
block: Mark bdrv_refresh_filename() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 29 Sep 2023 14:51:45 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Oct 2023 14:31:33 +0000 (16:31 +0200)
commitb7cfc7d58ec697a681a269036dc8f6444ffd495d
tree7de8cd2b44868526b1b7415d3cf88ee810b98ab9
parent15f3f1fe57cd98ef0f45a25681b7a99dc3be0484
block: Mark bdrv_refresh_filename() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_refresh_filename() 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>
Message-ID: <20230929145157.45443-11-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
12 files changed:
block.c
block/nfs.c
block/qapi.c
block/raw-format.c
block/vhdx.c
block/vhdx.h
block/vmdk.c
blockdev.c
include/block/block-global-state.h
include/block/block_int-common.h
include/block/qapi.h
qemu-img.c