Re: [RFC PATCH v2 1/2] workqueue: Add warnings and fallback if system_{unbound}_wq is used

From: Marco Crivellari

Date: Thu May 28 2026 - 10:58:19 EST


On Thu, May 28, 2026 at 4:23 PM Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> On Thu, May 28, 2026 at 04:14:03PM +0200, Marco Crivellari wrote:
> > That's maybe a silly observation on my side.
> >
> > If I remove the checks from where I placed them and move them deeper
> > (__queue_work() for example), I won't know how to print the "caller,"
> > making it harder for people to understand which code is using the
> > deprecated workqueue.
> >
> > Printing the stack with dump_stack() is not doable.
> >
> > Do you have suggestions?
>
> For workqueues, identifying the work function and workqueue name should be
> good enough. It's not like these are difficult to find.

Cool, let's do like this.

Thanks!
--

Marco Crivellari

SUSE Labs