summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_sched_switch.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-12-15 22:31:07 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-12-22 23:37:46 -0500
commitd716ff71dd12bc6328f84a9ec1c3647daf01c827 (patch)
tree28b94a30daa2270dc14f782f6bb93dcb0c2a1429 /kernel/trace/trace_sched_switch.c
parentcf6ab6d9143b157786bf29bca5c32e55234bb07d (diff)
tracing: Remove taking of trace_types_lock in pipe files
Taking the global mutex "trace_types_lock" in the trace_pipe files causes a bottle neck as most the pipe files can be read per cpu and there's no reason to serialize them. The current_trace variable was given a ref count and it can not change when the ref count is not zero. Opening the trace_pipe files will up the ref count (and decremented on close), so that the lock no longer needs to be taken when accessing the current_trace variable. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
0 files changed, 0 insertions, 0 deletions