Re: [RFC PATCH v2 1/2] workqueue: Add warnings and fallback if system_{unbound}_wq is used
From: Tejun Heo
Date: Thu May 28 2026 - 10:23:30 EST
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.
Thanks.
--
tejun