ftrace/direct: Fix lockup in modify_ftrace_direct_multi
authorJiri Olsa <jolsa@redhat.com>
Tue, 9 Nov 2021 11:42:17 +0000 (12:42 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 10 Nov 2021 16:56:43 +0000 (11:56 -0500)
commit2e6e9058d13a22a6fdd36a8c444ac71d9656003a
tree9c92cf986ff75d8e243d68cfe6b0921cd96775c7
parent51d157946666382e779f94c39891e8e9a020da78
ftrace/direct: Fix lockup in modify_ftrace_direct_multi

We can't call unregister_ftrace_function under ftrace_lock.

Link: https://lkml.kernel.org/r/20211109114217.1645296-1-jolsa@kernel.org
Fixes: ed29271894aa ("ftrace/direct: Do not disable when switching direct callers")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c