]> git.proxmox.com Git - mirror_qemu.git/commit
block: Mark bdrv_parent_perms_conflict() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Mon, 11 Sep 2023 09:46:12 +0000 (11:46 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Sep 2023 15:46:01 +0000 (17:46 +0200)
commit3804e3cf540af25a01d0d418a5a1d4f78c2574ff
tree7a3fb1b6ec027501a297d2cacbe31e00ecaaa8c9
parentafdaeb9ea06ea641ccc4226964b8e278af5e7685
block: Mark bdrv_parent_perms_conflict() and callers GRAPH_RDLOCK

The function reads the parents list, so it needs to hold the graph lock.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230911094620.45040-14-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/block-backend.c
block/crypto.c
block/mirror.c
block/vmdk.c
include/block/block_int-common.h
include/block/block_int-global-state.h
include/sysemu/block-backend-global-state.h
tests/unit/test-bdrv-graph-mod.c