Re: [QUESTION] workqueue: Reducing flush_workqueue() overhead for unbound workqueues
From: Tejun Heo
Date: Tue Sep 01 2026 - 17:13:24 EST
Hello,
On Tue, Sep 01, 2026 at 04:46:06PM +0800, Yao Kai wrote:
> Is there a recommended way to avoid this overhead for such case,
> I would appreciate guidance on how this problem should be solved.
Posted a patchset which makes flush_workqueue() visit only the pwqs which
have been active since the last flush:
https://lore.kernel.org/all/20260901210929.3092513-1-tj@xxxxxxxxxx/
Can you please test whether it resolves the fsync latency issue you're
seeing?
Thanks.
--
tejun