]> git.baikalelectronics.ru Git - kernel.git/commit
tracepoint: Optimize the critical region of mutex_lock in tracepoint_module_coming()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 14 Sep 2022 06:14:16 +0000 (14:14 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 26 Sep 2022 17:01:18 +0000 (13:01 -0400)
commit54ad048ad1e77c6e64964add7ae4df8a3e9eff7a
treea93505c996f7df02bc5cf06a097dfc4a4f62adba
parenta3030a57bbc1570c30165bd84853013f5ca38196
tracepoint: Optimize the critical region of mutex_lock in tracepoint_module_coming()

The memory allocation of 'tp_mod' does not require mutex_lock()
protection, move it out.

Link: https://lkml.kernel.org/r/20220914061416.1630-1-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/tracepoint.c