• Home
  • Raw
  • Download

Lines Matching refs:flush_color

209 	int			flush_color;	/* L: flushing color */  member
251 int flush_color; /* WQ: flush color waiting for */ member
267 int flush_color; /* WQ: current flush color */ member
1218 if (likely(pwq->flush_color != color)) in pwq_dec_nr_in_flight()
1226 pwq->flush_color = -1; in pwq_dec_nr_in_flight()
2761 int flush_color, int work_color) in flush_workqueue_prep_pwqs() argument
2766 if (flush_color >= 0) { in flush_workqueue_prep_pwqs()
2776 if (flush_color >= 0) { in flush_workqueue_prep_pwqs()
2777 WARN_ON_ONCE(pwq->flush_color != -1); in flush_workqueue_prep_pwqs()
2779 if (pwq->nr_in_flight[flush_color]) { in flush_workqueue_prep_pwqs()
2780 pwq->flush_color = flush_color; in flush_workqueue_prep_pwqs()
2794 if (flush_color >= 0 && atomic_dec_and_test(&wq->nr_pwqs_to_flush)) in flush_workqueue_prep_pwqs()
2811 .flush_color = -1, in __flush_workqueue()
2829 if (next_color != wq->flush_color) { in __flush_workqueue()
2836 this_flusher.flush_color = wq->work_color; in __flush_workqueue()
2841 WARN_ON_ONCE(wq->flush_color != this_flusher.flush_color); in __flush_workqueue()
2845 if (!flush_workqueue_prep_pwqs(wq, wq->flush_color, in __flush_workqueue()
2848 wq->flush_color = next_color; in __flush_workqueue()
2854 WARN_ON_ONCE(wq->flush_color == this_flusher.flush_color); in __flush_workqueue()
2891 WARN_ON_ONCE(wq->flush_color != this_flusher.flush_color); in __flush_workqueue()
2898 if (next->flush_color != wq->flush_color) in __flush_workqueue()
2905 wq->flush_color != work_next_color(wq->work_color)); in __flush_workqueue()
2908 wq->flush_color = work_next_color(wq->flush_color); in __flush_workqueue()
2919 tmp->flush_color = wq->work_color; in __flush_workqueue()
2929 WARN_ON_ONCE(wq->flush_color != wq->work_color); in __flush_workqueue()
2937 WARN_ON_ONCE(wq->flush_color == wq->work_color); in __flush_workqueue()
2938 WARN_ON_ONCE(wq->flush_color != next->flush_color); in __flush_workqueue()
2943 if (flush_workqueue_prep_pwqs(wq, wq->flush_color, -1)) in __flush_workqueue()
3815 pwq->flush_color = -1; in init_pwq()