On 2020-07-17 14:33:31 [+0200], Alberto Milone wrote: > > I checked and CONFIG_DEBUG_LOCK_ALLOC is not enabled in our kernels. The access to that variable is optimized away if not for debug. I made this: | #include <linux/module.h> | #include <linux/idr.h> | | static int le_init(void) | { | idr_preload_end(); | return 0; | } | module_init(le_init); | | static void le_exit(void) | { | } | module_exit(le_exit); | | MODULE_DESCRIPTION("driver"); | MODULE_LICENSE("prop"); and it produced a .ko. Here the "idr_preload_end()" was reduced to "preempt_enable()" as intended. No access to "&radix_tree_preloads.lock". Sebastian