Home
last modified time | relevance | path

Searched refs:bdrv_graph (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dgraph-lock.c88 ctx->bdrv_graph = g_new0(BdrvGraphRWlock, 1); in register_aiocontext()
90 assert(ctx->bdrv_graph->reader_count == 0); in register_aiocontext()
91 QTAILQ_INSERT_TAIL(&aio_context_list, ctx->bdrv_graph, next_aio); in register_aiocontext()
97 orphaned_reader_count += ctx->bdrv_graph->reader_count; in unregister_aiocontext()
98 QTAILQ_REMOVE(&aio_context_list, ctx->bdrv_graph, next_aio); in unregister_aiocontext()
99 g_free(ctx->bdrv_graph); in unregister_aiocontext()
209 BdrvGraphRWlock *bdrv_graph; in bdrv_graph_co_rdlock() local
210 bdrv_graph = qemu_get_current_aio_context()->bdrv_graph; in bdrv_graph_co_rdlock()
213 qatomic_set(&bdrv_graph->reader_count, in bdrv_graph_co_rdlock()
214 bdrv_graph->reader_count + 1); in bdrv_graph_co_rdlock()
[all …]