]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Protect bs->parents with graph_lock
authorKevin Wolf <kwolf@redhat.com>
Fri, 29 Sep 2023 14:51:55 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Oct 2023 14:31:33 +0000 (16:31 +0200)
commitb59b466071391cb76b39584e1558be2d0797c054
treee086d7ac7fdec76b82c386c6eb946b85cfa4ea55
parent3574499a1e5e420c3e72d0e283cfb2b13bce672e
block: Protect bs->parents with graph_lock

Almost all functions that access the parent link already take the graph
lock now. Add locking to the remaining user in a test case 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-21-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/block/block_int-common.h
tests/unit/test-block-iothread.c