Lines Matching refs:barr
2653 struct wq_barrier *barr = container_of(work, struct wq_barrier, work); in wq_barrier_func() local
2654 complete(&barr->done); in wq_barrier_func()
2682 struct wq_barrier *barr, in insert_wq_barrier() argument
2695 INIT_WORK_ONSTACK(&barr->work, wq_barrier_func); in insert_wq_barrier()
2696 __set_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(&barr->work)); in insert_wq_barrier()
2698 init_completion_map(&barr->done, &target->lockdep_map); in insert_wq_barrier()
2700 barr->task = current; in insert_wq_barrier()
2725 debug_work_activate(&barr->work); in insert_wq_barrier()
2726 insert_work(pwq, &barr->work, head, work_flags); in insert_wq_barrier()
3013 static bool start_flush_work(struct work_struct *work, struct wq_barrier *barr, in start_flush_work() argument
3044 insert_wq_barrier(pwq, barr, work, worker); in start_flush_work()
3071 struct wq_barrier barr; in __flush_work() local
3082 if (start_flush_work(work, &barr, from_cancel)) { in __flush_work()
3083 wait_for_completion(&barr.done); in __flush_work()
3084 destroy_work_on_stack(&barr.work); in __flush_work()
4727 struct wq_barrier *barr; in pr_cont_work() local
4729 barr = container_of(work, struct wq_barrier, work); in pr_cont_work()
4732 task_pid_nr(barr->task)); in pr_cont_work()