trace_events_filter: Use rcu_assign_pointer() when setting ftrace_event_call->filter
authorTejun Heo <tj@kernel.org>
Wed, 23 Nov 2011 16:49:49 +0000 (08:49 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:55:50 +0000 (08:55 -0800)
commitbf34b36a208ecca76e41814ff8837f8b41528248
tree0a71a1c6b66d640f834d0fd2b9a31ac3c3097e0c
parent03923350d5fbcdb23faca8c9ca55988aac7383c3
trace_events_filter: Use rcu_assign_pointer() when setting ftrace_event_call->filter

commit d3d9acf646679c1981032b0985b386d12fccc60c upstream.

ftrace_event_call->filter is sched RCU protected but didn't use
rcu_assign_pointer().  Use it.

TODO: Add proper __rcu annotation to call->filter and all its users.

-v2: Use RCU_INIT_POINTER() for %NULL clearing as suggested by Eric.

Link: http://lkml.kernel.org/r/20111123164949.GA29639@google.com

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/trace/trace_events_filter.c