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 <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 9687bbf commit 8b0cb3a
1 file changed
+4
-11
lines changed| 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