hc
2023-11-20 5a4414d1fd83d52b073fc27f6e12dc9fe3b32766
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