hc
2023-12-02 57e32c52610e6a560beda60bf33c48f9f42306d5
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