From: Steven Rostedt (Red Hat) Date: Tue, 16 Dec 2014 03:31:07 +0000 (-0500) Subject: tracing: Remove taking of trace_types_lock in pipe files X-Git-Tag: fixes-v4.0-rc1~127^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d716ff71dd12bc6328f84a9ec1c3647daf01c827;p=pandora-kernel.git 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 --- Reading git-diff-tree failed