Re: [PATCH] rcu,ftrace: Fix ftrace recursion

From: Peter Zijlstra
Date: Tue Sep 29 2020 - 10:50:05 EST


On Tue, Sep 29, 2020 at 10:36:20AM -0400, Steven Rostedt wrote:

> > +notrace bool rcu_is_watching(void)
> > {
> > bool ret;
> >
>
> I think the patch I suggested is more suitable.

Both, with only your patch we'd still take the pointless mcount call,
which is then pure overhead.