Message ID | 20241009125127.18902-11-neeraj.upadhyay@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 6edbb5a8053a45dfca7bedcbb8fce8e8baaee9e2 |
Headers | show |
Series | Make RCU Tasks scan idle tasks | expand |
diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h index 72dc0d0a4a8f..ef9de6b91a3d 100644 --- a/kernel/rcu/tasks.h +++ b/kernel/rcu/tasks.h @@ -1485,7 +1485,8 @@ static void call_rcu_tasks_rude(struct rcu_head *rhp, rcu_callback_t func) */ void synchronize_rcu_tasks_rude(void) { - synchronize_rcu_tasks_generic(&rcu_tasks_rude); + if (!IS_ENABLED(CONFIG_ARCH_WANTS_NO_INSTR) || IS_ENABLED(CONFIG_FORCE_TASKS_RUDE_RCU)) + synchronize_rcu_tasks_generic(&rcu_tasks_rude); } EXPORT_SYMBOL_GPL(synchronize_rcu_tasks_rude);