]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Protect bs->backing with graph_lock
authorKevin Wolf <kwolf@redhat.com>
Fri, 27 Oct 2023 15:53:26 +0000 (17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Nov 2023 16:56:17 +0000 (17:56 +0100)
commit004915a96a7a40e942ac85e6d22518cbcd283506
treef664b5576e09107b86228b8b6fa340f74c907677
parentccd6a37947574707613e826e2bf04d55f1d5f238
block: Protect bs->backing with graph_lock

Almost all functions that access bs->backing already take the graph
lock now. Add locking to the remaining users and finally annotate the
struct field itself as protected by the graph lock.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231027155333.420094-18-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/commit.c
block/mirror.c
block/qed.c
block/replication.c
block/vmdk.c
include/block/block_int-common.h
tests/unit/test-bdrv-drain.c
tests/unit/test-bdrv-graph-mod.c