diff options
Diffstat (limited to 'block/graph-lock.c')
-rw-r--r-- | block/graph-lock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/graph-lock.c b/block/graph-lock.c index 58a7990..e5525ee 100644 --- a/block/graph-lock.c +++ b/block/graph-lock.c @@ -106,12 +106,13 @@ static uint32_t reader_count(void) return rd; } -void bdrv_graph_wrlock(BlockDriverState *bs) +void no_coroutine_fn bdrv_graph_wrlock(BlockDriverState *bs) { AioContext *ctx = NULL; GLOBAL_STATE_CODE(); assert(!qatomic_read(&has_writer)); + assert(!qemu_in_coroutine()); /* * Release only non-mainloop AioContext. The mainloop often relies on the |