diff options
author | Fiona Ebner <f.ebner@proxmox.com> | 2025-05-30 17:10:44 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2025-06-04 18:16:33 +0200 |
commit | 469422c45b3a816eaf36e7edc895c81e0f3d38bb (patch) | |
tree | 9a6e42b8cbbb53b002e9e087c225199b6494f933 | |
parent | 844d550d09ac29ff2b1b49069587ae6a989df31d (diff) | |
download | qemu-469422c45b3a816eaf36e7edc895c81e0f3d38bb.zip qemu-469422c45b3a816eaf36e7edc895c81e0f3d38bb.tar.gz qemu-469422c45b3a816eaf36e7edc895c81e0f3d38bb.tar.bz2 |
block: mark bdrv_child_change_aio_context() GRAPH_RDLOCK
This is a small step in preparation to mark bdrv_drained_begin() as
GRAPH_UNLOCKED. More concretely, it is in preparation to move the
drain out of bdrv_change_aio_context() and marking that function as
GRAPH_RDLOCK.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250530151125.955508-8-f.ebner@proxmox.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | include/block/block-global-state.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/block/block-global-state.h b/include/block/block-global-state.h index 9be34b3..aad1609 100644 --- a/include/block/block-global-state.h +++ b/include/block/block-global-state.h @@ -274,9 +274,10 @@ int bdrv_debug_remove_breakpoint(BlockDriverState *bs, const char *tag); int bdrv_debug_resume(BlockDriverState *bs, const char *tag); bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag); -bool bdrv_child_change_aio_context(BdrvChild *c, AioContext *ctx, - GHashTable *visited, Transaction *tran, - Error **errp); +bool GRAPH_RDLOCK +bdrv_child_change_aio_context(BdrvChild *c, AioContext *ctx, + GHashTable *visited, Transaction *tran, + Error **errp); int bdrv_try_change_aio_context(BlockDriverState *bs, AioContext *ctx, BdrvChild *ignore_child, Error **errp); |