We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff49f8 commit 2bee017Copy full SHA for 2bee017
kernel/module/main.c
@@ -450,8 +450,7 @@ bool __is_module_percpu_address(unsigned long addr, unsigned long *can_addr)
450
struct module *mod;
451
unsigned int cpu;
452
453
- preempt_disable();
454
-
+ guard(rcu)();
455
list_for_each_entry_rcu(mod, &modules, list) {
456
if (mod->state == MODULE_STATE_UNFORMED)
457
continue;
@@ -468,13 +467,10 @@ bool __is_module_percpu_address(unsigned long addr, unsigned long *can_addr)
468
467
per_cpu_ptr(mod->percpu,
469
get_boot_cpu_id());
470
}
471
- preempt_enable();
472
return true;
473
474
475
476
477
478
return false;
479
480
0 commit comments