Lines Matching full:writer
47 /* Queue of readers waiting for the writer to finish */
119 * reader_count == 0: this means writer will read has_reader as 1 in bdrv_graph_wrlock()
120 * reader_count >= 1: we don't know if writer read has_writer == 0 or 1, in bdrv_graph_wrlock()
181 /* make sure writer sees reader_count before we check has_writer */ in bdrv_graph_co_rdlock()
185 * has_writer == 0: this means writer will read reader_count as >= 1 in bdrv_graph_co_rdlock()
186 * has_writer == 1: we don't know if writer read reader_count == 0 in bdrv_graph_co_rdlock()
199 * Then the writer will read reader_count that does not take into in bdrv_graph_co_rdlock()
204 * then writer will read reader_count >= 1. in bdrv_graph_co_rdlock()
215 * Then the writer will set has_writer to 0 and wake up all readers, in bdrv_graph_co_rdlock()
221 * again for has_writer, otherwise we sleep without any writer in bdrv_graph_co_rdlock()
243 /* make sure writer sees reader_count before we check has_writer */ in bdrv_graph_co_rdunlock()
248 * has_writer == 1: we don't know if writer read reader_count old or in bdrv_graph_co_rdunlock()
250 * writer will for sure read the updated value. in bdrv_graph_co_rdunlock()