Re: [PATCH 1/3] tracing: Export eval_map_wq for asynchronous use by other modules
From: Yaxiong Tian <hidden>
Date: 2026-01-26 02:45:40
Also in:
linux-block, lkml
From: Yaxiong Tian <hidden>
Date: 2026-01-26 02:45:40
Also in:
linux-block, lkml
在 2026/1/24 04:32, Steven Rostedt 写道:
On Thu, 22 Jan 2026 11:24:15 +0800 Yaxiong Tian [off-list ref] wrote:quoted
The eval_map_work_func() function, though queued in eval_map_wq, holds the trace_event_sem read-write lock for a long time during kernel boot. This causes blocking issues for other functions. Making eval_map_wq extern allows other modules to schedule their work asynchronously on this queue, preventing it from blocking the main boot thread.If you are going to make this wq generic for other parts of the tracing code, then let's rename it. As "eval_map" is specific to the enum mappings being updated (which I hope someday I can get that update working at build time. And when I do, the name will be totally meaningless). Let's rename it to "trace_init_wq" instead. -- Steve
Thank you for your suggestion. I have renamed it to trace_init_wq and released the V2 version.