Re: [PATCH V4 05/12] trace/hwlat: Support hotplug operations

From
Steven Rostedt <rostedt@goodmis.org>
Date
2021-06-21 15:25:47
Also in
lkml
Reply to
Daniel Bristot de Oliveira, 2021-06-21
On Mon, 21 Jun 2021 13:34:44 +0200
Daniel Bristot de Oliveira [off-list ref] wrote:
quoted
And of course, because get_online_cpus() is called within
trace_types_lock, doing this check is going to cause a lock inversion.
 
Yep! I tried to take the trace_type_lock here, and got the lockdep info about
this problem.
quoted
The only thing I could think of is to wake up a worker thread to do the
work. That is, this just wakes the worker thread, then the worker grabs
the trace_types_lock, iterates through the cpu mask of expect running
threads, and then starts or kills them depending on the hwlat_busy
value.  
So, it will not wait for the kworker to run?
What wont wait?

-- Steve
Thread (28 messages) 28 messages, 2 authors, last reply 2021-06-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help