tracing/kprobes: Use rcu_dereference_raw for tp->files
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Mon, 13 May 2013 11:58:34 +0000 (20:58 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 15 May 2013 17:50:22 +0000 (13:50 -0400)
commitc02c7e65d9b13670e34bc523744cf4f6e99c198a
tree186f0a0e169e83b9c7d899ace2e028b7293459c5
parent60705c89460fdc7227f2d153b68b3f34814738a4
tracing/kprobes: Use rcu_dereference_raw for tp->files

Use rcu_dereference_raw() for accessing tp->files. Because the
write-side uses rcu_assign_pointer() for memory barrier,
the read-side also has to use rcu_dereference_raw() with
read memory barrier.

Link: http://lkml.kernel.org/r/20130513115834.6545.17022.stgit@mhiramat-M0-7522
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c