diff options
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 83cc2c01195d..f85b0f1cb942 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -1054,6 +1054,9 @@ static void remove_subsystem_dir(const char *name) | |||
1054 | } | 1054 | } |
1055 | } | 1055 | } |
1056 | 1056 | ||
1057 | /* | ||
1058 | * Must be called under locking both of event_mutex and trace_event_mutex. | ||
1059 | */ | ||
1057 | static void __trace_remove_event_call(struct ftrace_event_call *call) | 1060 | static void __trace_remove_event_call(struct ftrace_event_call *call) |
1058 | { | 1061 | { |
1059 | ftrace_event_enable_disable(call, 0); | 1062 | ftrace_event_enable_disable(call, 0); |
@@ -1070,7 +1073,9 @@ static void __trace_remove_event_call(struct ftrace_event_call *call) | |||
1070 | void trace_remove_event_call(struct ftrace_event_call *call) | 1073 | void trace_remove_event_call(struct ftrace_event_call *call) |
1071 | { | 1074 | { |
1072 | mutex_lock(&event_mutex); | 1075 | mutex_lock(&event_mutex); |
1076 | down_write(&trace_event_mutex); | ||
1073 | __trace_remove_event_call(call); | 1077 | __trace_remove_event_call(call); |
1078 | up_write(&trace_event_mutex); | ||
1074 | mutex_unlock(&event_mutex); | 1079 | mutex_unlock(&event_mutex); |
1075 | } | 1080 | } |
1076 | 1081 | ||