Re: [PATCH] printk: Make console tracepoint safe in NMI() context

From: Steven Rostedt
Date: Fri Jul 15 2022 - 09:52:06 EST


On Fri, 15 Jul 2022 14:39:52 +0200
Marco Elver <elver@xxxxxxxxxx> wrote:

> Couldn't this just use rcu_is_watching()?
>
> | * rcu_is_watching - see if RCU thinks that the current CPU is not idle

Maybe, but I was thinking that Petr had a way to hit the issue that we
worry about. But since the non _rcuide() call requires rcu watching,
prehaps that is better to use.

-- Steve