All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] Fix cpuidle_idle_call() RCU usage
@ 2012-02-03  1:12 Paul E. McKenney
  2012-02-03  1:12 ` [PATCH RFC tip/core/rcu 1/3] rcu: Allow nesting of rcu_idle_enter() and rcu_idle_exit() Paul E. McKenney
  2012-02-03  2:43 ` [PATCH RFC 0/3] Fix cpuidle_idle_call() RCU usage Josh Triplett
  0 siblings, 2 replies; 6+ messages in thread
From: Paul E. McKenney @ 2012-02-03  1:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: mingo, laijs, dipankar, akpm, mathieu.desnoyers, josh, niv, tglx,
	peterz, rostedt, Valdis.Kletnieks, dhowells, eric.dumazet, darren,
	fweisbec, patches

Hello!

This patch series is a second attempt to fix the idle-loop uses of RCU,
see https://lkml.org/lkml/2012/2/1/741 for v1.  Where the first series
attempted to drive rcu_idle_enter() and rcu_idle_exit() further down
into the Linux kernels multitude of idle loops, this patch instead
marks specific idle-loop operations containing RCU read-side critical
sections, as suggested by Nicolas Pitre and Steven Rostedt.  The possibility
of code shared between idle and non-idle also requires the ability to nest
rcu_idle_enter() calls.  The individual patches are as follows:

1.	Allow nesting of rcu_idle_enter() and rcu_idle_exit().
2.	Add an RCU_NONIDLE() macro to enclose idle-loop code that
	contains RCU read-side critical sections.
3.	Use RCU_NONIDLE() to protect cpuidle_idle_call()'s tracepoints.

This patchset has the distinct advantage of avoiding touching any
architecture-specific code.  ;-)

							Thanx, Paul

------------------------------------------------------------------------

 b/drivers/cpuidle/cpuidle.c |   12 ++++++++----
 b/include/linux/rcupdate.h  |   27 +++++++++++++++++++++++++++
 b/kernel/rcu.h              |   18 +++++++++++++++++-
 b/kernel/rcutiny.c          |   16 ++++++++++++----
 b/kernel/rcutree.c          |   19 +++++++++++++------
 kernel/rcutiny.c            |    2 ++
 kernel/rcutree.c            |    2 ++
 7 files changed, 81 insertions(+), 15 deletions(-)


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

end of thread, other threads:[~2012-02-03 11:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03  1:12 [PATCH RFC 0/3] Fix cpuidle_idle_call() RCU usage Paul E. McKenney
2012-02-03  1:12 ` [PATCH RFC tip/core/rcu 1/3] rcu: Allow nesting of rcu_idle_enter() and rcu_idle_exit() Paul E. McKenney
2012-02-03  1:12   ` [PATCH RFC tip/core/rcu 2/3] rcu: Add RCU_NONIDLE() for idle-loop RCU read-side critical sections Paul E. McKenney
2012-02-03  1:12   ` [PATCH RFC tip/core/rcu 3/3] cpuidle: Inform RCU of " Paul E. McKenney
2012-02-03 11:02     ` Deepthi Dharwar
2012-02-03  2:43 ` [PATCH RFC 0/3] Fix cpuidle_idle_call() RCU usage Josh Triplett

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.