]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
block: Mark bdrv_amend_options() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 29 Sep 2023 14:51:48 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Oct 2023 14:31:33 +0000 (16:31 +0200)
commitbd131d6705b6996f2cdccee3db017af570ce91ad
tree71c7238864b3f05e9b53407b94ed77085be04713
parent4026f1c4f320aa072fa4cd299545cbc97315e246
block: Mark bdrv_amend_options() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_amend_options() need to hold a reader lock for the graph. This
removes an assume_graph_lock() call in crypto's implementation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230929145157.45443-14-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/crypto.c
include/block/block-global-state.h
include/block/block_int-common.h
qemu-img.c