]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/ftrace: Avoid extra serialization for graph caller patching
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 28 Aug 2024 17:07:00 +0000 (19:07 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2024 20:56:34 +0000 (22:56 +0200)
commit36dff49b9634f6054efbfda83682b2081a64b35a
tree069fac23361b8665034cda95cbae5fb4d8d47ef5
parent5200614080cd7a0fca7424b711cab503dfe6bdca
s390/ftrace: Avoid extra serialization for graph caller patching

The only context where ftrace_enable_ftrace_graph_caller()
or ftrace_disable_ftrace_graph_caller() is called also calls
ftrace_arch_code_modify_post_process(), which already performs
text_poke_sync_lock().

ftrace_run_update_code()
arch_ftrace_update_code()
ftrace_modify_all_code()
ftrace_enable_ftrace_graph_caller()/ftrace_disable_ftrace_graph_caller()
ftrace_arch_code_modify_post_process()
text_poke_sync_lock()

Remove the redundant serialization.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/ftrace.c