Skip to content

Track callbacks on a per-segment basis

Paul E. McKenney lkml rcu 1 version New

Get series with b4
b4 am 20210106012541.GA13972@paulmck-ThinkPad-P72

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6rcu/tree: Make rcu_do_batch count how many callbacks were executedkernel/rcu/rcu_segcblist.c kernel/rcu/rcu_segcblist.h kernel/rcu/tree.c+7 -70 replies
2/6rcu/segcblist: Add additional comments to explain smp_mb()kernel/rcu/rcu_segcblist.c+64 -40 replies
3/6rcu/segcblist: Add counters to segcblist datastructureinclude/linux/rcu_segcblist.h kernel/rcu/rcu_segcblist.c kernel/rcu/rcu_segcblist.h +1 more+82 -460 replies
4/6rcu/tree: segcblist: Remove redundant smp_mb()skernel/rcu/rcu_segcblist.c kernel/rcu/tree.c+0 -20 replies
5/6rcu/trace: Add tracing for how segcb list changesinclude/trace/events/rcu.h kernel/rcu/tree.c+35 -00 replies
6/6rcu/segcblist: Add debug checks for segment lengthskernel/rcu/rcu_segcblist.c kernel/rcu/rcu_segcblist.h kernel/rcu/tree.c+21 -20 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchFrederic WeisbeckerNeeraj Upadhyay
1/6R-b R-b
2/6
3/6R-b
4/6R-b
5/6R-b R-b
6/6

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/6] Track callbacks on a per-segment basis

Hello!

This series adds counts to the rcu_segcblist structure that track the number of callbacks in each segment, allowing RCU to distinguish between (for example) a need to get grace periods done or get callbacks invoked (or, for that matter, both).

1. Make rcu_do_batch count how many callbacks were executed,
courtesy of "Joel Fernandes (Google)".

2. Add additional comments to explain smp_mb(), courtesy of "Joel
Fernandes (Google)".

3. Add counters to segcblist datastructure, courtesy of "Joel
Fernandes (Google)".

4. segcblist: Remove redundant smp_mb()s, courtesy of "Joel Fernandes

	(Google)".

5. Add tracing for how segcb list changes, courtesy of "Joel
Fernandes (Google)".

6. Add debug checks for segment lengths, courtesy of "Joel Fernandes

	(Google)".

						Thanx, Paul

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

 include/linux/rcu_segcblist.h |    1 
 include/trace/events/rcu.h    |   26 +++++
 kernel/rcu/rcu_segcblist.c    |  203 +++++++++++++++++++++++++++++++-----------
 kernel/rcu/rcu_segcblist.h    |    6 -
 kernel/rcu/srcutree.c         |    5 -
 kernel/rcu/tree.c             |   29 ++++--
 6 files changed, 209 insertions(+), 61 deletions(-)