Re: [PATCH v2 3/3] timers: Disable memory pre-allocation of timer debug objects
From: Thomas Gleixner
Date: Fri Jun 13 2025 - 11:40:53 EST
On Fri, Jun 13 2025 at 11:13, Waiman Long wrote:
> On 6/12/25 6:03 PM, Thomas Gleixner wrote:
>> I have a hard time to find the printk() in rmqueue_bulk(). But if there
>> is one then it has to go or has to be converted to a deferred printk()
>> simply because that code can be called from so many contexts, which all
>> can legitimately create a lock dependency chain into the console drivers
>> in some way or the other. That's like invoking printk() from the guts of
>> the scheduler or locking code.
>
> Actually, rmqueue_bulk() calls expand() which, in turn, calls
> __add_to_free_list() and the printk() comes from the VM_WARN_ONCE()
> macro there.
Duh. I missed that one ....
> In a sense, printk() is called because of some other issues in the mm code.
:)
Thanks,
tglx