All of lore.kernel.org
 help / color / mirror / Atom feed
* Possible use of RCU while in extended QS: idle vs RCU read-side in interrupt vs rcu_eqs_exit
@ 2019-01-10  1:38 Mathieu Desnoyers
  2019-01-10  4:13 ` Paul E. McKenney
  2019-01-10 16:08 ` Steven Rostedt
  0 siblings, 2 replies; 14+ messages in thread
From: Mathieu Desnoyers @ 2019-01-10  1:38 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: linux-kernel, Peter Zijlstra, rostedt

Hi Paul,

I've had a user report that trace_sched_waking() appears to be
invoked while !rcu_is_watching() in some situation, so I started
digging into the scheduler idle code.

It appears that interrupts are re-enabled before rcu_eqs_exit() is
invoked when exiting idle code from the scheduler.

I wonder what happens if an interrupt handler (including scheduler code)
happens to issue a RCU read-side critical section before rcu_eqs_exit()
is called ? Is there some code on interrupt entry that ensures rcu eqs
state is exited in such scenario ?

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-01-14 22:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10  1:38 Possible use of RCU while in extended QS: idle vs RCU read-side in interrupt vs rcu_eqs_exit Mathieu Desnoyers
2019-01-10  4:13 ` Paul E. McKenney
2019-01-10  6:30   ` Mathieu Desnoyers
2019-01-10 14:19     ` Paul E. McKenney
2019-01-10 16:08 ` Steven Rostedt
2019-01-10 16:44   ` Mathieu Desnoyers
2019-01-10 17:11     ` Mathieu Desnoyers
2019-01-10 17:23       ` Steven Rostedt
2019-01-10 17:25       ` Mathieu Desnoyers
2019-01-10 17:45         ` Perf: event wakeup discards sched_waking events Mathieu Desnoyers
2019-01-14 13:09           ` Peter Zijlstra
2019-01-14 21:36             ` Mathieu Desnoyers
2019-01-14 22:04               ` Steven Rostedt
2019-01-14 22:31                 ` Mathieu Desnoyers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.