[PATCH 0/2] workqueue: Simplify color management

From: Lai Jiangshan
Date: Tue Nov 25 2025 - 05:27:39 EST


From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>

Use pwq->work_color for wq_barrier which also makes all work items use
pwq->work_color as its color and move the common code into insert_work().

Lai Jiangshan (2):
workqueue: Use pwq->work_color for wq_barrier
workqueue: Move flush color assignment code into insert_work()

kernel/workqueue.c | 20 +++++---------------
kernel/workqueue_internal.h | 1 -
2 files changed, 5 insertions(+), 16 deletions(-)

--
2.19.1.6.gb485710b