Re: [PATCH 0/6] workqueue: Make flush_workqueue() also watch flush_work()

From: Tejun Heo
Date: Tue Aug 17 2021 - 13:48:26 EST


On Tue, Aug 17, 2021 at 09:32:33AM +0800, Lai Jiangshan wrote:
> Due to historical convenience, we used WORK_NO_COLOR for barrier work items
> queued by flush_work(). The color has two purposes:
> Not participate in flushing
> Not participate in nr_active
>
> Only the second purpose is obligatory. So the plan is to mark barrier
> work items inactive without using WORK_NO_COLOR in patch4 so that we can
> assign a flushing color to them in patch5.

This is great work. Applied to wq/for-5.15.

Thanks.

--
tejun