Home
last modified time | relevance | path

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

/openbmc/qemu/block/
H A Dgraph-lock.c34 static int has_writer; variable
112 assert(!qatomic_read(&has_writer)); in bdrv_graph_wrlock()
130 qatomic_set(&has_writer, 0); in bdrv_graph_wrlock()
132 qatomic_set(&has_writer, 1); in bdrv_graph_wrlock()
148 assert(qatomic_read(&has_writer)); in bdrv_graph_wrunlock()
155 qatomic_store_release(&has_writer, 0); in bdrv_graph_wrunlock()
190 if (!qatomic_read(&has_writer)) { in bdrv_graph_co_rdlock()
224 if (!qatomic_read(&has_writer)) { in bdrv_graph_co_rdlock()
252 if (qatomic_read(&has_writer)) { in bdrv_graph_co_rdunlock()
280 assert(qatomic_read(&has_writer)); in assert_bdrv_graph_writable()