]> 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)
commit88350a17cdb8e64323f42845c66750e344942721
treea93505c996f7df02bc5cf06a097dfc4a4f62adba
parentdc112d0ae9195bdd8ccea56ade84f4cfc69eecf1
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