We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588bebb commit 4fead8eCopy full SHA for 4fead8e
kernel/trace/trace_events.c
@@ -1054,6 +1054,9 @@ static void remove_subsystem_dir(const char *name)
1054
}
1055
1056
1057
+/*
1058
+ * Must be called under locking both of event_mutex and trace_event_mutex.
1059
+ */
1060
static void __trace_remove_event_call(struct ftrace_event_call *call)
1061
{
1062
ftrace_event_enable_disable(call, 0);
@@ -1070,7 +1073,9 @@ static void __trace_remove_event_call(struct ftrace_event_call *call)
1070
1073
void trace_remove_event_call(struct ftrace_event_call *call)
1071
1074
1072
1075
mutex_lock(&event_mutex);
1076
+ down_write(&trace_event_mutex);
1077
__trace_remove_event_call(call);
1078
+ up_write(&trace_event_mutex);
1079
mutex_unlock(&event_mutex);
1080
1081
0 commit comments