]> Gentwo Git Trees - linux/.git/commit
ftrace: Use guard to take ftrace_lock in ftrace_graph_set_hash()
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 28 Oct 2024 07:12:33 +0000 (03:12 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 29 Oct 2024 11:43:02 +0000 (07:43 -0400)
commit8b0cb3a4c5e85dda8957ba6a4c8c081a9aec6e80
tree758d97a227223503bd30e24607e1b979ebeaf2fb
parent9687bbf219549fc93f2364c78aa91fd9ffc9eca0
ftrace: Use guard to take ftrace_lock in ftrace_graph_set_hash()

The ftrace_lock is taken for most of the ftrace_graph_set_hash() function
throughout the end. Use guard to take the ftrace_lock to simplify the exit
paths.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241028071308.406073025@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c