diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-10-27 17:53:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-11-07 19:14:19 +0100 |
commit | 430da832afb6a6eebb7c1726991c60fb06322d3e (patch) | |
tree | 0fbd2e3ecd95d23dec87312fecc84fef09b62efc /block | |
parent | 372b69f503d47eb6619a98cac2ab5a6a569e3483 (diff) | |
download | qemu-430da832afb6a6eebb7c1726991c60fb06322d3e.zip qemu-430da832afb6a6eebb7c1726991c60fb06322d3e.tar.gz qemu-430da832afb6a6eebb7c1726991c60fb06322d3e.tar.bz2 |
block: Mark bdrv_skip_implicit_filters() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_skip_implicit_filters() need to hold a reader lock for the graph
because it calls bdrv_filter_child(), which accesses bs->file/backing.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231027155333.420094-8-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/monitor/block-hmp-cmds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/monitor/block-hmp-cmds.c b/block/monitor/block-hmp-cmds.c index 5b2c597..c729cbf 100644 --- a/block/monitor/block-hmp-cmds.c +++ b/block/monitor/block-hmp-cmds.c @@ -206,6 +206,9 @@ void hmp_commit(Monitor *mon, const QDict *qdict) BlockBackend *blk; int ret; + GLOBAL_STATE_CODE(); + GRAPH_RDLOCK_GUARD_MAINLOOP(); + if (!strcmp(device, "all")) { ret = blk_commit_all(); } else { |