]> git.proxmox.com Git - mirror_qemu.git/commit
block: Protect bs->children with graph_lock
authorKevin Wolf <kwolf@redhat.com>
Fri, 29 Sep 2023 14:51:56 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Oct 2023 14:31:33 +0000 (16:31 +0200)
commit680e0cc40c5830ebcbfa0bce99bf932e1a4cf6c6
tree25d4599f69d96706708243a273e1a4f37124075e
parentb59b466071391cb76b39584e1558be2d0797c054
block: Protect bs->children with graph_lock

Almost all functions that access the child links 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: <20230929145157.45443-22-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/replication.c
include/block/block_int-common.h
tests/unit/test-bdrv-drain.c