Searched refs:reader (Results 1 – 3 of 3) sorted by relevance
121 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock() argument123 if (reader) { in __percpu_rwsem_trylock()152 bool reader = wq_entry->flags & WQ_FLAG_CUSTOM; in percpu_rwsem_wake_function() local157 if (!__percpu_rwsem_trylock(sem, reader)) in percpu_rwsem_wake_function()167 return !reader; /* wake (readers until) 1 writer */ in percpu_rwsem_wake_function()170 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait() argument180 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait()182 wq_entry.flags |= WQ_FLAG_EXCLUSIVE | reader * WQ_FLAG_CUSTOM; in percpu_rwsem_wait()184 trace_android_vh_percpu_rwsem_wq_add(sem, reader); in percpu_rwsem_wait()
3935 struct buffer_page *reader = cpu_buffer->reader_page; in rb_per_cpu_empty() local3944 if (reader->read != rb_page_commit(reader)) in rb_per_cpu_empty()3951 if (commit == reader) in rb_per_cpu_empty()4383 struct buffer_page *reader; in ring_buffer_iter_empty() local4392 reader = cpu_buffer->reader_page; in ring_buffer_iter_empty()4418 (iter->head_page == reader && commit_page == head_page && in ring_buffer_iter_empty()4596 struct buffer_page *reader; in rb_swap_reader_page() local4612 reader = rb_set_head_page(cpu_buffer); in rb_swap_reader_page()4613 if (!reader) in rb_swap_reader_page()4616 cpu_buffer->reader_page->list.next = rb_list_head(reader->list.next); in rb_swap_reader_page()[all …]
220 readers blocking that grace period. Note that any RCU reader