Lines Matching refs:barr
3719 struct wq_barrier *barr = container_of(work, struct wq_barrier, work); in wq_barrier_func() local
3720 complete(&barr->done); in wq_barrier_func()
3748 struct wq_barrier *barr, in insert_wq_barrier() argument
3766 INIT_WORK_ONSTACK_KEY(&barr->work, wq_barrier_func, in insert_wq_barrier()
3768 __set_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(&barr->work)); in insert_wq_barrier()
3770 init_completion_map(&barr->done, &target->lockdep_map); in insert_wq_barrier()
3772 barr->task = current; in insert_wq_barrier()
3797 insert_work(pwq, &barr->work, head, work_flags); in insert_wq_barrier()
4115 static bool start_flush_work(struct work_struct *work, struct wq_barrier *barr, in start_flush_work() argument
4146 insert_wq_barrier(pwq, barr, work, worker); in start_flush_work()
4173 struct wq_barrier barr; in __flush_work() local
4181 if (!start_flush_work(work, &barr, from_cancel)) in __flush_work()
4205 while (!try_wait_for_completion(&barr.done)) { in __flush_work()
4217 wait_for_completion(&barr.done); in __flush_work()
4220 destroy_work_on_stack(&barr.work); in __flush_work()
6187 struct wq_barrier *barr; in pr_cont_work() local
6189 barr = container_of(work, struct wq_barrier, work); in pr_cont_work()
6193 task_pid_nr(barr->task)); in pr_cont_work()