]> 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)
commit59cc1b1ab36879f97efdeb96c710c49c8de5377f
tree49478e181b9bfea9d7b06bc856482c67d9da3b82
parent201ecb80e9f22bd9980cead5fbce46e7e308a781
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