mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
block: Mark bdrv_cow_child() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_cow_child() need to hold a reader lock for the graph because it accesses bs->backing. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20231027155333.420094-13-kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ec82cc41a7
commit
78a9c76eef
3 changed files with 12 additions and 6 deletions
|
@ -90,7 +90,7 @@ static int stream_prepare(Job *job)
|
|||
unfiltered_base = bdrv_skip_filters(base);
|
||||
bdrv_graph_rdunlock_main_loop();
|
||||
|
||||
if (bdrv_cow_child(unfiltered_bs)) {
|
||||
if (unfiltered_bs_cow) {
|
||||
const char *base_id = NULL, *base_fmt = NULL;
|
||||
if (unfiltered_base) {
|
||||
base_id = s->backing_file_str ?: unfiltered_base->filename;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue