]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
blktrace: Make init_blk_tracer() asynchronous
authorYaxiong Tian <tianyaxiong@kylinos.cn>
Wed, 4 Feb 2026 01:53:53 +0000 (09:53 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 6 Feb 2026 20:27:00 +0000 (15:27 -0500)
commit0c2580a8094693578afa9b6cbcee406cf131920e
tree1e37106bc162c96c86bb13dff67db03263d284dc
parent1c48f7ab72a8c9d6419622931e622e5247e979f5
blktrace: Make init_blk_tracer() asynchronous

The init_blk_tracer() function causes significant boot delay as it
waits for the trace_event_sem lock held by trace_event_update_all().
Specifically, its child function register_trace_event() requires
this lock, which is occupied for an extended period during boot.

To resolve this, the execution of primary init_blk_tracer() is moved
to the trace_init_wq workqueue, allowing it to run asynchronously,
and prevent blocking the main boot thread.

Link: https://patch.msgid.link/20260204015353.163331-1-tianyaxiong@kylinos.cn
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/blktrace.c