Skip to content

rcu: fixes for lockdep RCU and accelerated dyntick GPs

Paul E. McKenney lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rcu: fixes for accelerated grace periods for last non-dynticked CPUkernel/rcutree.c kernel/rcutree.h kernel/rcutree_plugin.h+57 -201 reply
2/3rcu: Make non-RCU_PROVE_LOCKING rcu_read_lock_sched_held() understand bootinclude/linux/rcupdate.h+1 -11 reply
3/3rcu: more fixes for accelerated GPs for last non-dynticked CPUkernel/rcutree_plugin.h+9 -11 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchIngo Molnar
1/3Located-by Located-by
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH tip/core/rcu 0/3] rcu: fixes for lockdep RCU and accelerated dyntick GPs

Hello!

This patchset includes three fixes for problems in tip/core/rcu:

1. Convert grace-period acceleration for the last non-dynticked
RCU to a trivial state machine in order to avoid illegally invoking __rcu_process_callbacks() with irqs disabled.

2. Make the non-PROVE_RCU variant of rcu_read_lock_sched_held()
understand that preemption is disabled during boot before the scheduler starts. (The earlier patch did the PROVE_RCU variant, but missed the non-PROVE_RCU variant.)

3. Add some irq-disabling to the grace-period acceleration
in #1 above and also enforce a hold-off period so that the last non-dynticked CPU doesn't softirq itself to death when there are multiple RCU callbacks in flight.

Thanx, Paul

 b/include/linux/rcupdate.h |    3 -
 b/kernel/rcutree.c         |    3 +
 b/kernel/rcutree.h         |    1 
 b/kernel/rcutree_plugin.h  |   74 ++++++++++++++++++++++++++++++++-------------
 kernel/rcutree_plugin.h    |   11 +++++-
 5 files changed, 67 insertions(+), 25 deletions(-)