Re: There is a Tasks RCU stall warning

From: Steven Rostedt
Date: Tue Apr 11 2017 - 17:35:03 EST


On Tue, 11 Apr 2017 17:31:33 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> The thread gets created when I enable the benchmark tracepoint. It just
> so happens that my test enables *all* tracepoints, which would of
> course include this one as well.
>
> I'll have to look at this code to see why it is getting missed.

Yep, this thread never goes to sleep, but will call cond_resched()
periodically. This keeps rcu_tasks() from finishing.

Should I add a direct "schedule()" in there instead of a
cond_resched(), or do you think rcu_tasks should have cond_resched() be
a quiescent state as well?

-- Steve