Re: [RFC PATCH 0/2] workqueue: Add wornings and check WQ flags usage
From: Breno Leitao
Date: Fri May 15 2026 - 08:50:48 EST
On Thu, May 14, 2026 at 11:23:52AM +0200, Marco Crivellari wrote:
> Hi,
>
> Currently system_wq and system_unbound_wq can still be used and no message
> is printed. To avoid further use of them, add a warning and route the
> workqueue on system_percpu_wq or system_dfl_wq.
>
> Similar scenario for WQ_PERCPU and WQ_UNBOUND. Currently there are still
> users that use alloc_workqueue(,0,). To avoid such situations, a couple
> of checks have been added:
>
> - if neither of the flag is present, set WQ_PERCPU
> - if both are present, remove WQ_PERCPU
>
> Along with these, a warning will be printed.
How many users will seee this warning once this patch lands?