OSDN Git Service

tracing: Reverse the order of trace_types_lock and event_mutex
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Sep 2017 20:22:49 +0000 (16:22 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 4 Oct 2017 15:36:56 +0000 (11:36 -0400)
commit12ecef0cb12102d8c034770173d2d1363cb97d52
tree9004cba90a415c4843acb13708e9a0b75337b6f4
parent6e7a2398114a2597a0995f96f44d908741ae5035
tracing: Reverse the order of trace_types_lock and event_mutex

In order to make future changes where we need to call
tracing_set_clock() from within an event command, the order of
trace_types_lock and event_mutex must be reversed, as the event command
will hold event_mutex and the trace_types_lock is taken from within
tracing_set_clock().

Link: http://lkml.kernel.org/r/20170921162249.0dde3dca@gandalf.local.home
Requested-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace_events.c