diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-11 18:25:08 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-17 15:21:19 -0400 |
commit | b980b117c9ff17226937128a15692a18c9a28ed6 (patch) | |
tree | f4f1d2911131998ea103c58846b516ce4c039bbf /kernel/trace/trace.h | |
parent | fcdc71257923263d042236eaf62bae5e033757b5 (diff) | |
download | op-kernel-dev-b980b117c9ff17226937128a15692a18c9a28ed6.zip op-kernel-dev-b980b117c9ff17226937128a15692a18c9a28ed6.tar.gz |
tracing: Have the trace_event benchmark thread call cond_resched_rcu_qs()
The trace_event benchmark thread runs in kernel space in an infinite loop
while also calling cond_resched() in case anything else wants to schedule
in. Unfortunately, on a PREEMPT kernel, that makes it a nop, in which case,
this will never voluntarily schedule. That will cause synchronize_rcu_tasks()
to forever block on this thread, while it is running.
This is exactly what cond_resched_rcu_qs() is for. Use that instead.
Acked-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions