]> git.proxmox.com Git - mirror_qemu.git/commit
block: Mark bdrv_recurse_can_replace() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2023 11:57:49 +0000 (13:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:54 +0000 (14:16 +0200)
commit533c6e4ee8885cb9e7c6ac36e8e9fa92bea64f97
treed490bdbbc180f6ce60879f21404b9f075f4fe713
parent4f0bef8b36eb33efbba0a216b233265d734bdbfb
block: Mark bdrv_recurse_can_replace() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_recurse_can_replace() 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-20-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkverify.c
block/mirror.c
block/quorum.c
blockdev.c
include/block/block-global-state.h
include/block/block_int-common.h
include/block/block_int-global-state.h