All of lore.kernel.org
 help / color / mirror / Atom feed
* One potential issue with concurrent execution of RCU callbacks...
@ 2020-12-08 14:58 Paul E. McKenney
  2020-12-08 15:54 ` Frederic Weisbecker
  0 siblings, 1 reply; 9+ messages in thread
From: Paul E. McKenney @ 2020-12-08 14:58 UTC (permalink / raw)
  To: frederic; +Cc: boqun.feng, rcu, linux-kernel

Hello, Frederic,

Boqun just asked if RCU callbacks ran in BH-disabled context to avoid
concurrent execution of the same callback.  Of course, this raises the
question of whether a self-posting callback can have two instances of
itself running concurrently while a CPU is in the process of transitioning
between softirq and rcuo invocation of callbacks.

I believe that the answer is "no" because BH-disabled context is
an implicit RCU read-side critical section.  Therefore, the initial
invocation of the RCU callback must complete in order for a new grace
period to complete, and a new grace period must complete before the
second invocation of that same callback to start.

Does that make sense, or am I missing something?

							Thanx, Paul

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

end of thread, other threads:[~2020-12-10  0:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 14:58 One potential issue with concurrent execution of RCU callbacks Paul E. McKenney
2020-12-08 15:54 ` Frederic Weisbecker
2020-12-08 17:19   ` Paul E. McKenney
2020-12-08 17:52     ` Frederic Weisbecker
2020-12-08 18:24       ` Paul E. McKenney
2020-12-08 22:04         ` Frederic Weisbecker
2020-12-09  0:03           ` Paul E. McKenney
2020-12-09  2:14           ` Boqun Feng
2020-12-10  0:50             ` Paul E. McKenney

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.