Searched refs:write_ctr (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/kernel/locking/
H A Dpercpu-rwsem.c20 atomic_set(&brw->write_ctr, 0); __percpu_init_rwsem()
34 * there is no pending writer (atomic_read(write_ctr) == 0) and inc/dec the
50 * But if it succeeds we do not have any barriers, atomic_read(write_ctr) or
60 if (likely(!atomic_read(&brw->write_ctr))) { update_fast_ctr()
117 * A writer increments ->write_ctr to force the readers to switch to the
130 atomic_inc(&brw->write_ctr); percpu_down_write()
132 * 1. Ensures that write_ctr != 0 is visible to any down_read/up_read percpu_down_write()
164 atomic_dec(&brw->write_ctr); percpu_up_write()
/linux-4.1.27/include/linux/
H A Dpercpu-rwsem.h12 atomic_t write_ctr; member in struct:percpu_rw_semaphore

Completed in 93 milliseconds