debugobjects: Make them PREEMPT_RT aware
authorThomas Gleixner <tglx@linutronix.de>
Thu, 12 Aug 2021 15:43:26 +0000 (17:43 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Aug 2021 08:07:44 +0000 (10:07 +0200)
commit4bedcc28469a24fe481a8a31b3584e6070457ddb
tree49478e181b9bfea9d7b06bc856482c67d9da3b82
parent36a21d51725af2ce0700c6ebcb6b9594aac658a6
debugobjects: Make them PREEMPT_RT aware

On PREEMPT_RT enabled kernels it is not possible to refill the object pool
from atomic context (preemption or interrupts disabled) as the allocator
might acquire 'sleeping' spinlocks.

Guard the invocation of fill_pool() accordingly.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/87sfzehdnl.ffs@tglx
lib/debugobjects.c