diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-05-04 13:57:50 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-05-10 14:16:54 +0200 |
commit | e19b157f3c66c44e3b89cb50a2030f0187b968e9 (patch) | |
tree | 01196fee542b91b06ff8d42066d2b5a40c873c0e /block/io.c | |
parent | 533c6e4ee8885cb9e7c6ac36e8e9fa92bea64f97 (diff) | |
download | qemu-e19b157f3c66c44e3b89cb50a2030f0187b968e9.zip qemu-e19b157f3c66c44e3b89cb50a2030f0187b968e9.tar.gz qemu-e19b157f3c66c44e3b89cb50a2030f0187b968e9.tar.bz2 |
block: Mark bdrv_refresh_limits() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_refresh_limits() need to hold a reader lock for the graph because
it accesses the children list of a node.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230504115750.54437-21-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/io.c')
-rw-r--r-- | block/io.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -160,7 +160,6 @@ void bdrv_refresh_limits(BlockDriverState *bs, Transaction *tran, Error **errp) bool have_limits; GLOBAL_STATE_CODE(); - assume_graph_lock(); /* FIXME */ if (tran) { BdrvRefreshLimitsState *s = g_new(BdrvRefreshLimitsState, 1); |