Commit 8b0cb3a
committed
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>1 parent 9687bbf commit 8b0cb3a
1 file changed
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6816 | 6816 | | |
6817 | 6817 | | |
6818 | 6818 | | |
6819 | | - | |
| 6819 | + | |
6820 | 6820 | | |
6821 | | - | |
6822 | | - | |
| 6821 | + | |
6823 | 6822 | | |
6824 | | - | |
6825 | 6823 | | |
6826 | 6824 | | |
6827 | 6825 | | |
| |||
6837 | 6835 | | |
6838 | 6836 | | |
6839 | 6837 | | |
6840 | | - | |
| 6838 | + | |
6841 | 6839 | | |
6842 | 6840 | | |
6843 | 6841 | | |
| |||
6846 | 6844 | | |
6847 | 6845 | | |
6848 | 6846 | | |
6849 | | - | |
6850 | | - | |
6851 | 6847 | | |
6852 | | - | |
6853 | | - | |
6854 | | - | |
6855 | | - | |
| 6848 | + | |
6856 | 6849 | | |
6857 | 6850 | | |
6858 | 6851 | | |
| |||
0 commit comments