Skip to content

Commit 66777e5

Browse files
committed
rcu-tasks: Use context-switch hook for PREEMPT=y kernels
Currently, the PREEMPT=y version of rcu_note_context_switch() does not invoke rcu_tasks_qs(), and we need it to in order to keep RCU Tasks Trace's IPIs down to a dull roar. This commit therefore enables this hook. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent ac3caf8 commit 66777e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/rcu/tree_plugin.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ void rcu_note_context_switch(bool preempt)
331331
rcu_qs();
332332
if (rdp->exp_deferred_qs)
333333
rcu_report_exp_rdp(rdp);
334+
if (!preempt)
335+
rcu_tasks_qs(current);
334336
trace_rcu_utilization(TPS("End context switch"));
335337
}
336338
EXPORT_SYMBOL_GPL(rcu_note_context_switch);

0 commit comments

Comments
 (0)