Lines Matching refs:writers
115 * - try-lock semantics for readers and writers
325 * if there are pending readers no new writers would be allowed to come in and
332 atomic_set(&lock->writers, 0);
343 atomic_inc(&lock->writers);
345 /* Ensure writers count is updated before we check for pending readers */
366 atomic_dec(&lock->writers);
376 * goes to sleep in case of active writers. This guarantees new writers
382 wait_event(lock->pending_readers, atomic_read(&lock->writers) == 0);
388 * atomic_dec_and_test implies a full barrier, so woken up writers