rcu/nocb: De-offload and re-offload support v4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest19 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | rcu/nocb: Turn enabled/offload states into a common flaginclude/ kernel/ kernel/ | +28 | 0 replies | |
| 2/19 | rcu/nocb: Provide basic callback offloading state machine bitsinclude/ kernel/ kernel/ +1 more | +128 | 0 replies | |
| 3/19 | rcu/nocb: Always init segcblist on CPU upkernel/ | +9 | 0 replies | |
| 4/19 | rcu/nocb: De-offloading CB kthreadinclude/ kernel/ kernel/ +2 more | +123 | 0 replies | |
| 5/19 | rcu/nocb: Don't deoffload an offline CPU with pending workkernel/ | +9 | 0 replies | |
| 6/19 | rcu/nocb: De-offloading GP kthreadkernel/ | +51 | 0 replies | |
| 7/19 | rcu/nocb: Re-offload supportinclude/ kernel/ | +140 | 0 replies | |
| 8/19 | rcu/nocb: Shutdown nocb timer on de-offloadingkernel/ kernel/ | +12 | 0 replies | |
| 9/19 | rcu: Flush bypass before setting SEGCBLIST_SOFTIRQ_ONLYkernel/ | +10 | 0 replies | |
| 10/19 | rcu/nocb: Set SEGCBLIST_SOFTIRQ_ONLY at the very last stage of de-offloadingkernel/ | +8 | 0 replies | |
| 11/19 | rcu/nocb: Only cond_resched() from actual offloaded batch processingkernel/ | +1 | 0 replies | |
| 12/19 | rcu/nocb: Process batch locally as long as offloading isn't completekernel/ kernel/ | +14 | 0 replies | |
| 13/19 | rcu/nocb: Locally accelerate callbacks as long as offloading isn't completekernel/ | +3 | 0 replies | |
| 14/19 | tools/rcutorture: Support nocb toggle in TREE01tools/ | +3 | 0 replies | |
| 15/19 | rcutorture: Remove weak nocb declarationskernel/ | +0 | 0 replies | |
| 16/19 | rcutorture: Export nocb (de)offloading functionskernel/ | +2 | 0 replies | |
| 17/19 | cpu/hotplug: Add lockdep_is_cpus_held()include/ kernel/ | +8 | 1 reply | |
| 18/19 | timer: Add timer_curr_running()include/ kernel/ | +15 | 0 replies | |
| 19/19 | rcu/nocb: Detect unsafe checks for offloaded rdpkernel/ kernel/ | +87 | 0 replies |
Reviews trailers per patch
None of the 19 patches has a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/19] rcu/nocb: De-offload and re-offload support v4
This keeps growing up. Rest assured, most of it is debug code and sanity checks.
Boqun Feng found that holding rnp lock while updating the offloaded state of an rdp isn't needed, and he was right despite my initial reaction. The sites that read the offloaded state while holding the rnp lock are actually protected because they read it locally in a non preemptible context.
So I removed the rnp lock in "rcu/nocb: De-offloading CB". And just to make sure I'm not missing something, I added sanity checks that ensure we always read the offloaded state in a safe way (3 last patches).
Still passes TREE01 (but I had to fight!)
git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
rcu/nocb-toggle-v4
HEAD: 579e15efa48fb6fc4ecf14961804051f385807fe
Thanks,
Frederic
---
Frederic Weisbecker (19):
rcu/nocb: Turn enabled/offload states into a common flag rcu/nocb: Provide basic callback offloading state machine bits rcu/nocb: Always init segcblist on CPU up
rcu/nocb: De-offloading CB kthread
rcu/nocb: Don't deoffload an offline CPU with pending work rcu/nocb: De-offloading GP kthread
rcu/nocb: Re-offload support
rcu/nocb: Shutdown nocb timer on de-offloading
rcu: Flush bypass before setting SEGCBLIST_SOFTIRQ_ONLY rcu/nocb: Set SEGCBLIST_SOFTIRQ_ONLY at the very last stage of de-offloading rcu/nocb: Only cond_resched() from actual offloaded batch processing rcu/nocb: Process batch locally as long as offloading isn't complete rcu/nocb: Locally accelerate callbacks as long as offloading isn't complete tools/rcutorture: Support nocb toggle in TREE01
rcutorture: Remove weak nocb declarations
rcutorture: Export nocb (de)offloading functions
cpu/hotplug: Add lockdep_is_cpus_held()
timer: Add timer_curr_running()
rcu/nocb: Detect unsafe checks for offloaded rdp
include/linux/cpu.h | 1 + include/linux/rcu_segcblist.h | 119 +++++- include/linux/rcupdate.h | 4 + include/linux/timer.h | 2 + kernel/cpu.c | 7 + kernel/rcu/rcu_segcblist.c | 13 +- kernel/rcu/rcu_segcblist.h | 45 ++- kernel/rcu/rcutorture.c | 3 - kernel/rcu/tree.c | 49 ++- kernel/rcu/tree.h | 2 + kernel/rcu/tree_plugin.h | 416 +++++++++++++++++++-- kernel/time/timer.c | 13 + .../selftests/rcutorture/configs/rcu/TREE01.boot | 4 +- 13 files changed, 614 insertions(+), 64 deletions(-)