RCU ->gp_seq conversion for v4.19
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest40 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/40 | rcu: Introduce grace-period sequence numberskernel/ kernel/ | +18 | 0 replies | |
| 2/40 | rcu: Move rcu_gp_slow() to ->gp_seqkernel/ | +2 | 0 replies | |
| 3/40 | rcu: Make rcutorture's batches-completed API use ->gp_seqkernel/ kernel/ kernel/ +1 more | +45 | 0 replies | |
| 4/40 | rcu: Convert rcu_check_gp_kthread_starvation() to GP sequence numberkernel/ | +2 | 0 replies | |
| 5/40 | rcu: Make quiescent-state reporting use ->gp_seqkernel/ | +9 | 0 replies | |
| 6/40 | rcu: Convert conditional grace-period primitives to ->gp_seqkernel/ | +10 | 0 replies | |
| 7/40 | rcu: Move RCU's grace-period-change code to ->gp_seqkernel/ kernel/ | +33 | 0 replies | |
| 8/40 | rcu: Convert rcu_gpnum_ovf() to ->gp_seqkernel/ | +3 | 0 replies | |
| 9/40 | rcu: Move rcu_implicit_dynticks_qs() to ->gp_seqkernel/ | +1 | 0 replies | |
| 10/40 | rcu: Move rcu_try_advance_all_cbs() to ->gp_seqkernel/ | +2 | 0 replies | |
| 11/40 | rcu: Move rcu_nocb_gp_get() to ->gp_seqkernel/ | +1 | 0 replies | |
| 12/40 | rcu: Move rcu_gp_in_progress() to ->gp_seqkernel/ | +1 | 0 replies | |
| 13/40 | rcu: Convert ->rcu_iw_gpnum to ->gp_seqkernel/ kernel/ kernel/ | +8 | 0 replies | |
| 14/40 | rcu: Convert ->completedqs to ->gp_seqkernel/ kernel/ | +4 | 0 replies | |
| 15/40 | rcu: Convert grace-period requests to ->gp_seqkernel/ kernel/ kernel/ | +24 | 0 replies | |
| 16/40 | rcu: Make RCU CPU stall warnings use ->gp_seqkernel/ kernel/ | +30 | 0 replies | |
| 17/40 | rcutorture: Convert rcutorture_get_gp_data() to ->gp_seqkernel/ kernel/ kernel/ +1 more | +20 | 0 replies | |
| 18/40 | rcu: Move from ->need_future_gp[] to ->gp_seq_neededkernel/ kernel/ | +20 | 0 replies | |
| 19/40 | rcu: Make rcu_nocb_wait_gp() check if GP already requestedkernel/ kernel/ | +15 | 0 replies | |
| 20/40 | rcu: Convert rcu_grace_period tracepoint to gp_seqinclude/ kernel/ kernel/ | +29 | 0 replies | |
| 21/40 | rcu: Convert rcu_future_grace_period tracepoint to gp_seqinclude/ kernel/ | +12 | 0 replies | |
| 22/40 | rcu: Convert rcu_grace_period_init tracepoint to gp_seqinclude/ | +6 | 0 replies | |
| 23/40 | rcu: Convert rcu_preempt_task tracepoint to ->gp_seqinclude/ kernel/ | +8 | 0 replies | |
| 24/40 | rcu: Convert rcu_unlock_preempted_task tracepoint to ->gp_seqinclude/ kernel/ | +8 | 0 replies | |
| 25/40 | rcu: Convert rcu_quiescent_state_report tracepoint to ->gp_seqinclude/ kernel/ kernel/ | +8 | 0 replies | |
| 26/40 | rcu: Convert rcu_fqs tracepoint to ->gp_seqinclude/ kernel/ | +10 | 0 replies | |
| 27/40 | rcu: Remove ->gpnum and ->completedkernel/ kernel/ kernel/ | +13 | 0 replies | |
| 28/40 | rcu: Make simple callback acceleration refer to rdp->gp_seq_neededkernel/ | +32 | 0 replies | |
| 29/40 | doc: Update data-structure documentation for ->gp_seqDocumentation/ | +63 | 0 replies | |
| 30/40 | doc: Update memory-ordering documentation for ->gp-seqDocumentation/ Documentation/ Documentation/ +3 more | +243 | 0 replies | |
| 31/40 | doc: Update RCU CPU stall-warning documentationDocumentation/ | +12 | 0 replies | |
| 32/40 | rcu: Don't funnel-lock above leaf node if GP in progressinclude/ kernel/ | +11 | 0 replies | |
| 33/40 | rcu: Produce last "CleanupMore" trace only if late-breaking requestkernel/ | +1 | 0 replies | |
| 34/40 | rcu: Fix cpustart tracepoint gp_seq numberkernel/ | +1 | 0 replies | |
| 35/40 | rcu: Make rcu_start_this_gp() check for grace period already startedkernel/ kernel/ | +10 | 0 replies | |
| 36/40 | rcutorture: Correctly handle grace-period sequence wrapkernel/ kernel/ kernel/ +1 more | +41 | 0 replies | |
| 37/40 | rcu: Regularize resetting of rcu_data wrap indicatorkernel/ | +4 | 0 replies | |
| 38/40 | rcu: Rename the grace-period-request variables and parametersinclude/ kernel/ | +35 | 0 replies | |
| 39/40 | rcu: Use better variable names in funnel locking loopkernel/ | +32 | 0 replies | |
| 40/40 | rcu: Identify grace period is in progress as we advance up the treekernel/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH tip/core/rcu 0/40] RCU ->gp_seq conversion for v4.19
Hello!
This series moves from the two-variable ->gpnum and ->completed to a single-variable ->gp_seq approach. The key point is that ->gpnum and ->completed are either identical or ->gpnum is only one greater, which means that we are using a full unsigned long were a single bit would do. This series therefore applies the pre-existing grace-period sequence-number code used by expedited grace periods, _rcu_barrier(), and SRCU. This change also has the beneficial effect of allowing the grace-period state to be sampled with a single load, which will be used to improve the grace-period start code. The individual commits are as follows:
1. Introduce grace-period sequence numbers (->gp_seq) to normal RCU.
2-17. Make core RCU code use ->gp_seq instead of ->gpnum and ->completed.
18. Move from ->need_future_gp[] to ->gp_seq_needed, which allows
simpler grace-period-already-requested checks.
19. Use the new ->gp_seq_needed to make rcu_nocb_wait_gp() check if
a given grace has already been requested, thus reducing overhead for no-CBs CPUs.
20-26. Move RCU tracepoints to ->gp_seq.
27. Remove ->gpnum and ->completed.
28. Make simple callback acceleration refer to rdp->gp_seq_needed.
29-31. Update documentation to reflect ->gp_seq.
32. Don't funnel-lock above the leaf rcu_node structure if a grace period
is in progress, thus saving an upper-level rcu_node ->lock acquisition.
33. Produce the last CleanupMore trace only if the corresponding
grace-period request was quite recent, courtesy of Joel Fernandes.
34. Fix cpustart tracepoint ->gp_seq number, courtesy of Joel Fernandes.
35. Make rcu_start_this_gp() check for grace period already started.
36. Correctly handle grace-period sequence (->gp_seq) wrap in
rcutorture.
37. Regularize resetting of rcu_data wrap indicator.
38-39. Rename grace-period-request variables and parameters, courtesy
of Joel Fernandes.
40. Check current node rather than leaf node for requested grace
period already being in progress.
Thanx, Paul
------------------------------------------------------------------------
Documentation/RCU/Design/Data-Structures/Data-Structures.html | 118 - Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.html | 22 Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp-cleanup.svg | 123 - Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp-init-1.svg | 16 Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp-init-3.svg | 56 Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp.svg | 237 +-- Documentation/RCU/Design/Memory-Ordering/TreeRCU-qs.svg | 12 Documentation/RCU/stallwarn.txt | 24 include/trace/events/rcu.h | 114 - kernel/rcu/rcu.h | 70 - kernel/rcu/rcuperf.c | 44 kernel/rcu/rcutorture.c | 93 - kernel/rcu/srcutree.c | 5 kernel/rcu/tree.c | 678 ++++------ kernel/rcu/tree.h | 40 kernel/rcu/tree_plugin.h | 54 16 files changed, 832 insertions(+), 874 deletions(-)