diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-10-01 14:24:42 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-10-11 20:55:58 +0200 |
commit | e5873d6f7a7aa5f9de73ca829034fcaaf7b1d25e (patch) | |
tree | 24f59123941469a68df99217c99bb700b7e1c284 /arch/s390/kernel | |
parent | ae2b9a11b494a9ec59d7dc11d42654d659f859c6 (diff) | |
download | linux-e5873d6f7a7aa5f9de73ca829034fcaaf7b1d25e.tar.bz2 |
s390/ftrace: add missing serialization for graph caller patching
CPUs must be serialized also when ftrace_graph_caller gets patched.
This is missing since ftrace function graph support was added on s390.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/ftrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/ftrace.c b/arch/s390/kernel/ftrace.c index 04a3e88c58d7..e416aaaaf524 100644 --- a/arch/s390/kernel/ftrace.c +++ b/arch/s390/kernel/ftrace.c @@ -268,12 +268,14 @@ NOKPROBE_SYMBOL(prepare_ftrace_return); int ftrace_enable_ftrace_graph_caller(void) { brcl_disable(ftrace_graph_caller); + text_poke_sync_lock(); return 0; } int ftrace_disable_ftrace_graph_caller(void) { brcl_enable(ftrace_graph_caller); + text_poke_sync_lock(); return 0; } |