Lines Matching refs:readers
31 * - try-lock semantics for readers and writers
38 * We want concurrency of many readers and safe updates. The underlying locking
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
605 atomic_set(&lock->readers, 0);
620 if (atomic_read(&lock->readers))
625 /* Ensure writers count is updated before we check for pending readers */
627 if (atomic_read(&lock->readers)) {
640 wait_event(lock->pending_writers, !atomic_read(&lock->readers));
652 atomic_inc(&lock->readers);
672 if (atomic_dec_and_test(&lock->readers))