hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/lib/debugobjects.c
....@@ -376,7 +376,10 @@
376376 struct debug_obj *obj;
377377 unsigned long flags;
378378
379
- fill_pool();
379
+#ifdef CONFIG_PREEMPT_RT_FULL
380
+ if (preempt_count() == 0 && !irqs_disabled())
381
+#endif
382
+ fill_pool();
380383
381384 db = get_bucket((unsigned long) addr);
382385