sched: Support shared runqueue locking
Status from this message: The following commit has been merged into the sched/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | sched: Employ sched_change guardsinclude/ kernel/ kernel/ +2 more | +114 | 8 replies | |
| 2/14 | sched: Re-arrange the {EN,DE}QUEUE flagskernel/ | +24 | 0 replies | |
| 3/14 | sched: Fold sched_class::switch{ing,ed}_{to,from}() into the change patternkernel/ kernel/ kernel/ +4 more | +66 | 0 replies | |
| 4/14 | sched: Cleanup sched_delayed handling for class switcheskernel/ kernel/ kernel/ +1 more | +15 | 0 replies | |
| 5/14 | sched: Move sched_class::prio_changed() into the change patternkernel/ kernel/ kernel/ +6 more | +47 | 1 reply | |
| 6/14 | sched: Fix migrate_disable_switch() lockingkernel/ | +6 | 0 replies | |
| 7/14 | sched: Fix do_set_cpus_allowed() lockingkernel/ kernel/ kernel/ | +17 | 3 replies | |
| 8/14 | sched: Rename do_set_cpus_allowed()include/ kernel/ kernel/ +2 more | +14 | 0 replies | |
| 9/14 | sched: Make __do_set_cpus_allowed() use the sched_change patternkernel/ | +5 | 0 replies | |
| 10/14 | sched: Add locking comments to sched_class methodskernel/ kernel/ | +103 | 0 replies | |
| 11/14 | sched: Add flags to {put_prev,set_next}_task() methodskernel/ kernel/ kernel/ +5 more | +33 | 0 replies | |
| 12/14 | sched: Add shared runqueue locking to __task_rq_lock()include/ kernel/ kernel/ +1 more | +30 | 17 replies | |
| 13/14 | sched: Add {DE,EN}QUEUE_LOCKEDkernel/ kernel/ kernel/ | +34 | 11 replies | |
| 14/14 | sched/ext: Implement p->srq_lock supportkernel/ | +47 | 1 reply |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by.
| Patch | Tejun Heo |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | A-b |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | |
| 10/14 | |
| 11/14 | |
| 12/14 | |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] sched: Support shared runqueue locking
Hi,
As mentioned [1], a fair amount of sched ext weirdness (current and proposed) is down to the core code not quite working right for shared runqueue stuff.
Instead of endlessly hacking around that, bite the bullet and fix it all up.
With these patches, it should be possible to clean up pick_task_scx() to not rely on balance_scx(). Additionally it should be possible to fix that RT issue, and the dl_server issue without further propagating lock breaks.
As is, these patches boot and run/pass selftests/sched_ext with lockdep on.
I meant to do more sched_ext cleanups, but since this has all already taken longer than I would've liked (real life interrupted :/), I figured I should post this as is and let TJ/Andrea poke at it.
Patches are also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/cleanup
[1] https://lkml.kernel.org/r/[email protected]
--- include/linux/cleanup.h | 5 + include/linux/sched.h | 6 +- kernel/cgroup/cpuset.c | 2 +- kernel/kthread.c | 15 +- kernel/sched/core.c | 370 +++++++++++++++++++++-------------------------- kernel/sched/deadline.c | 26 ++-- kernel/sched/ext.c | 104 +++++++------ kernel/sched/fair.c | 23 ++- kernel/sched/idle.c | 14 +- kernel/sched/rt.c | 13 +- kernel/sched/sched.h | 225 ++++++++++++++++++++-------- kernel/sched/stats.h | 2 +- kernel/sched/stop_task.c | 14 +- kernel/sched/syscalls.c | 80 ++++------ 14 files changed, 495 insertions(+), 404 deletions(-)