Re: [PATCH] tracing: Have all levels of checks prevent recursion

From
Steven Rostedt <rostedt@goodmis.org>
Date
2023-07-21 16:30:33
Also in
linux-riscv, linuxppc-dev, lkml
Reply to
Alexander Lobakin, 2023-07-21
On Fri, 21 Jul 2023 18:06:07 +0200
Alexander Lobakin [off-list ref] wrote:
quoted
Just because you disable interrupts does not mean you are in interrupt
context.  
Ah okay, thanks! IOW, if we want to check in some code that we're
certainly have interrupts enabled and are not in the interrupt context,
we must always do

if (!(in_hardirq() || irqs_disabled()))
Yeah, probably.
, nothing more elegant / already existing / ...?
It's not a common check. What would you call that?

	irq_safe() ?

-- Steve
Thread (20 messages) 20 messages, 5 authors, last reply 2023-07-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