Lines Matching refs:writers
31 * - try-lock semantics for readers and writers
218 * The rwlock is released and blocking writers is set.
239 * Lock the extent buffer for read. Wait for any writers (spinning or blocking).
291 * contending blocking writers. If there are, don't wait.
313 * Try-lock for read. Don't block or wait for contending writers.
414 * Lock for write. Wait for all blocking and spinning readers and writers. This
593 * if there are pending readers no new writers would be allowed to come in and
601 ret = percpu_counter_init(&lock->writers, 0, GFP_KERNEL);
614 percpu_counter_destroy(&lock->writers);
623 percpu_counter_inc(&lock->writers);
625 /* Ensure writers count is updated before we check for pending readers */
646 percpu_counter_dec(&lock->writers);
656 * goes to sleep in case of active writers. This guarantees new writers
663 percpu_counter_sum(&lock->writers) == 0);
669 * atomic_dec_and_test implies a full barrier, so woken up writers