]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit578c939287bdf683d596515e9d1fb12510823578
tree49478e181b9bfea9d7b06bc856482c67d9da3b82
parent45b992ef006d74ad4ece6c30745c0f626619dd0e
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