Home
last modified time | relevance | path

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

/openbmc/qemu/block/
H A Dgraph-lock.c63 uint32_t reader_count; member
90 assert(ctx->bdrv_graph->reader_count == 0); in register_aiocontext()
97 orphaned_reader_count += ctx->bdrv_graph->reader_count; in unregister_aiocontext()
102 static uint32_t reader_count(void) in reader_count() function
112 rd += qatomic_read(&brdv_graph->reader_count); in reader_count()
148 AIO_WAIT_WHILE_UNLOCKED(NULL, reader_count() >= 1); in bdrv_graph_wrlock()
157 } while (reader_count() >= 1); in bdrv_graph_wrlock()
213 qatomic_set(&bdrv_graph->reader_count, in bdrv_graph_co_rdlock()
214 bdrv_graph->reader_count + 1); in bdrv_graph_co_rdlock()
263 bdrv_graph->reader_count--; in bdrv_graph_co_rdlock()
[all …]