sched: Migrate disable support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 35 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | stop_machine: Add function and caller debug infoinclude/ kernel/ lib/ | +27 | 0 replies | |
| 2/9 | sched: Fix balance_callback()kernel/ kernel/ | +77 | 1 reply | |
| 3/9 | sched/hotplug: Ensure only per-cpu kthreads run during hotplugkernel/ kernel/ | +117 | 2 replies | |
| 4/9 | sched/core: Wait for tasks being pushed away on hotplugkernel/ kernel/ | +41 | 0 replies | |
| 5/9 | sched/hotplug: Consolidate task migration on CPU unpluginclude/ include/ kernel/ +1 more | +46 | 2 replies | |
| 6/9 | sched: Massage set_cpus_allowedkernel/ kernel/ kernel/ | +26 | 1 reply | |
| 7/9 | sched: Add migrate_disable()include/ include/ kernel/ +2 more | +179 | 14 replies | |
| 8/9 | sched: Fix migrate_disable() vs set_cpus_allowed_ptr()include/ kernel/ | +123 | 6 replies | |
| 9/9 | sched/core: Make migrate disable and CPU hotplug cooperativekernel/ kernel/ | +34 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] sched: Migrate disable support
Hi,
Here's my take on migrate_disable(). It avoids growing a second means of changing the affinity, documents how the things violates locking rules but still mostly works.
It also avoids blocking completely, so no more futex band-aids required.
Also, no more atomics/locks on the fast path.
I also put in a comment that explains how the whole concept is fundamentally flawed but a necessary evil to get PREEMPT_RT going -- for now.
Somewhat tested with PREEMPT_RT.
--- include/linux/cpuhotplug.h | 1 include/linux/preempt.h | 60 +++ include/linux/sched.h | 4 include/linux/sched/hotplug.h | 2 include/linux/stop_machine.h | 5 kernel/cpu.c | 9 kernel/sched/core.c | 673 +++++++++++++++++++++++++++++++----------- kernel/sched/deadline.c | 5 kernel/sched/sched.h | 24 + kernel/stop_machine.c | 23 + lib/dump_stack.c | 2 lib/smp_processor_id.c | 5 12 files changed, 635 insertions(+), 178 deletions(-)