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)
commit51714678eacc91fcfb8b235ced57ea70ade81cad
treea93505c996f7df02bc5cf06a097dfc4a4f62adba
parentfde59ab1614942a16dd0ce6f053ae96718f0ee50
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