hc
2023-11-30 6c9be420e167ee7ce45c0309586f09ddab28ac15
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