diff options
| author | Fiona Ebner <f.ebner@proxmox.com> | 2025-05-30 17:10:42 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2025-06-04 18:16:33 +0200 |
| commit | 3758733959af93b5eb3283659d868ad5b24152b4 (patch) | |
| tree | b0c65f4951201b31d18edd37c6cb4d9a9ae81e64 /block.c | |
| parent | 841998e08650f5b4476fa2d1eb84a592ab405f51 (diff) | |
| download | focaccia-qemu-3758733959af93b5eb3283659d868ad5b24152b4.tar.gz focaccia-qemu-3758733959af93b5eb3283659d868ad5b24152b4.zip | |
block: mark bdrv_parent_change_aio_context() GRAPH_RDLOCK
This is a small step in preparation to mark bdrv_drained_begin() as GRAPH_UNLOCKED. More concretely, it allows marking the change_aio_ctx() callback GRAPH_RDLOCK_PTR, which is the next step. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20250530151125.955508-6-f.ebner@proxmox.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
| -rw-r--r-- | block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block.c b/block.c index fa55dfba68..7207978e53 100644 --- a/block.c +++ b/block.c @@ -7575,10 +7575,10 @@ typedef struct BdrvStateSetAioContext { BlockDriverState *bs; } BdrvStateSetAioContext; -static bool bdrv_parent_change_aio_context(BdrvChild *c, AioContext *ctx, - GHashTable *visited, - Transaction *tran, - Error **errp) +static bool GRAPH_RDLOCK +bdrv_parent_change_aio_context(BdrvChild *c, AioContext *ctx, + GHashTable *visited, Transaction *tran, + Error **errp) { GLOBAL_STATE_CODE(); if (g_hash_table_contains(visited, c)) { |