]> git.proxmox.com Git - mirror_qemu.git/commit
block: Mark bdrv_cow_child() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 27 Oct 2023 15:53:21 +0000 (17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 7 Nov 2023 18:14:19 +0000 (19:14 +0100)
commit78a9c76eefae877e63591728234604310c51d88f
tree08679e5fddc04ef8224686142754b16dc24a4038
parentec82cc41a79ffa8b1a2dee76a420a34a59f117c6
block: Mark bdrv_cow_child() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_cow_child() need to hold a reader lock for the graph because it
accesses bs->backing.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231027155333.420094-13-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/stream.c
include/block/block_int-io.h
qemu-img.c