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

/linux-4.1.27/include/linux/
H A Dpercpu-rwsem.h14 atomic_t slow_read_ctr; member in struct:percpu_rw_semaphore
/linux-4.1.27/kernel/locking/
H A Dpercpu-rwsem.c21 atomic_set(&brw->slow_read_ctr, 0); __percpu_init_rwsem()
86 atomic_inc(&brw->slow_read_ctr); percpu_down_read()
99 if (atomic_dec_and_test(&brw->slow_read_ctr)) percpu_up_read()
120 * After that the readers can only inc/dec the slow ->slow_read_ctr counter,
147 /* nobody can use fast_read_ctr, move its sum into slow_read_ctr */ percpu_down_write()
148 atomic_add(clear_fast_ctr(brw), &brw->slow_read_ctr); percpu_down_write()
151 wait_event(brw->write_waitq, !atomic_read(&brw->slow_read_ctr)); percpu_down_write()

Completed in 69 milliseconds