diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-08-09 22:31:48 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-08-10 22:12:01 +0300 |
commit | e0a568dcd18bdaa77877d558700ce4d3bbbb12b8 (patch) | |
tree | 98962d8b1862aa1422e2e79021a6019a5a232a10 /kernel/compat.c | |
parent | b207de3ec531ff364843708c9fea968700aae8fe (diff) | |
download | linux-e0a568dcd18bdaa77877d558700ce4d3bbbb12b8.tar.xz |
tracing: Fix synchronizing to event changes with tracepoint_synchronize_unregister()
Now that some trace events can be protected by srcu_read_lock(tracepoint_srcu),
we need to make sure all locations that depend on this are also protected.
There were many places that did a synchronize_sched() thinking that it was
enough to protect againts access to trace events. This use to be the case,
but now that we use SRCU for _rcuidle() trace events, they may not be
protected by synchronize_sched(), as they may be called in paths that RCU is
not watching for preempt disable.
Fixes: e6753f23d961d ("tracepoint: Make rcuidle tracepoint callers use SRCU")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/compat.c')
0 files changed, 0 insertions, 0 deletions