Skip to content

Commit 243d1a7

Browse files
committed
tracepoint: Remove smp_read_barrier_depends() from comment
The comment in tracepoint_add_func() mentions smp_read_barrier_depends(), whose use should be quite restricted. This commit updates the comment to instead mention the smp_store_release() and rcu_dereference_sched() that the current code actually uses. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@kernel.org> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
1 parent 548095d commit 243d1a7

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎kernel/tracepoint.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,10 @@ static int tracepoint_add_func(struct tracepoint *tp,
212212
}
213213

214214
/*
215-
* rcu_assign_pointer has a smp_wmb() which makes sure that the new
216-
* probe callbacks array is consistent before setting a pointer to it.
217-
* This array is referenced by __DO_TRACE from
218-
* include/linux/tracepoints.h. A matching smp_read_barrier_depends()
219-
* is used.
215+
* rcu_assign_pointer has as smp_store_release() which makes sure
216+
* that the new probe callbacks array is consistent before setting
217+
* a pointer to it. This array is referenced by __DO_TRACE from
218+
* include/linux/tracepoint.h using rcu_dereference_sched().
220219
*/
221220
rcu_assign_pointer(tp->funcs, tp_funcs);
222221
if (!static_key_enabled(&tp->key))

0 commit comments

Comments
 (0)