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

/linux-4.1.27/kernel/locking/
H A Dpercpu-rwsem.c14 brw->fast_read_ctr = alloc_percpu(int); __percpu_init_rwsem()
15 if (unlikely(!brw->fast_read_ctr)) __percpu_init_rwsem()
28 free_percpu(brw->fast_read_ctr); percpu_free_rwsem()
29 brw->fast_read_ctr = NULL; /* catch use after free bugs */ percpu_free_rwsem()
61 __this_cpu_add(*brw->fast_read_ctr, val); update_fast_ctr()
109 sum += per_cpu(*brw->fast_read_ctr, cpu); for_each_possible_cpu()
110 per_cpu(*brw->fast_read_ctr, cpu) = 0; for_each_possible_cpu()
121 * ->fast_read_ctr is stable. Once the writer moves its sum into the slow
147 /* nobody can use fast_read_ctr, move its sum into slow_read_ctr */ percpu_down_write()
/linux-4.1.27/include/linux/
H A Dpercpu-rwsem.h11 unsigned int __percpu *fast_read_ctr; member in struct:percpu_rw_semaphore

Completed in 88 milliseconds