Skip to content

Preparatory changes for Proxy Execution v13

John Stultz lkml oe-kbuild-all regressions 17 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest7 patches 2 repliesIn review
  2. v12 posting 4/47 patches 19 repliesApplied
  3. v12 posting 3/47 patches 2 repliesSuperseded
Earlier versions · 14
VersionPostedPatchesRepliesStatus
v12 posting 2/47 patches0 repliesSuperseded
v12 posting 1/47 patches0 repliesSuperseded
v117 patches16 repliesSuperseded
v107 patches11 repliesSuperseded
v9 posting 2/27 patches7 repliesSuperseded
v9 posting 1/27 patches6 repliesSuperseded
v8 posting 2/27 patches8 repliesSuperseded
v8 posting 1/27 patches2 repliesSuperseded
v723 patches44 repliesSuperseded
v620 patches19 repliesSuperseded
v519 patches5 repliesSuperseded
v413 patches9 repliesSuperseded
v314 patches9 repliesSuperseded
v212 patches2 repliesSuperseded

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7locking/mutex: Remove wakeups from under mutex::wait_lockkernel/futex/pi.c kernel/locking/mutex.c kernel/locking/rtmutex.c +6 more+92 -386 replies
2/7locking/mutex: Make mutex::wait_lock irq safekernel/locking/mutex.c kernel/locking/ww_mutex.h+21 -180 replies
3/7locking/mutex: Expose __mutex_owner()kernel/locking/mutex.c kernel/locking/mutex.h+27 -250 replies
4/7sched: Add move_queued_task_locked helperkernel/sched/core.c kernel/sched/deadline.c kernel/sched/rt.c +1 more+19 -220 replies
5/7sched: Consolidate pick_*_task to task_is_pushable helperkernel/sched/deadline.c kernel/sched/rt.c kernel/sched/sched.h+12 -190 replies
6/7sched: Split out __schedule() deactivate task logic into a helperkernel/sched/core.c+39 -260 replies
7/7sched: Split scheduler and execution contextskernel/sched/core.c kernel/sched/deadline.c kernel/sched/fair.c +4 more+114 -800 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchK Prateek NayakMetin KayaDavidlohr BuesoValentin SchneiderQais YousefChristian LoehleAnders Roxell
1/7T-b T-b T-b R-b A-b T-b
2/7T-b T-b R-b R-b
3/7T-b T-b R-b R-b
4/7T-b T-b R-b R-b R-b
5/7T-b T-b R-b R-b R-b
6/7T-b T-b R-b R-b
7/7T-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v13 thread

Cover letter [PATCH v13 0/7] Preparatory changes for Proxy Execution v13

Hey All,

I wanted to send out v13 of the preparatory patches for
Proxy Execution - an approach for a generalized form of priority inheritance. Here again, I’m only submitting the early / preparatory changes for review, in the hope that we can move these more straightforward patches along and then iteratively move through the more interesting patches in the Proxy Execution series.

There have been no code changes for v13. The only difference is:
* Expaneded commit message, as suggested by Steven Rostedt

Thanks you for the detailed review and feedback!

These changes are based against tip/sched/core

Usually I link to the full proxy-execution series here, but while these preparatory changes rebased easily, I still have some work to do on later changes in the full proxy-execution series to adapt to recent delayed dequeuing and dl_server rework that landed in 6.12-rc1. I'll post separately with those changes once I've hammered all the details out.

Credit/Disclaimer:
—--------------------
As mentioned previously, this Proxy Execution series has a long history:

First described in a paper[1] by Watkins, Straub, Niehaus, then from patches from Peter Zijlstra, extended with lots of work by Juri Lelli, Valentin Schneider, and Connor O'Brien. (and thank you to Steven Rostedt for providing additional details here!)

So again, many thanks to those above, as all the credit for this
series really is due to them - while the mistakes are likely mine.

Thanks so much!
-john

[1] https://static.lwn.net/images/conf/rtlws11/papers/proc/p38.pdf

Cc Joel Fernandes <[email protected]>
Cc Qais Yousef <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>
Cc Dietmar Eggemann <[email protected]>
Cc Valentin Schneider <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Segall <[email protected]>
Cc Zimuzo Ezeozue <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Will Deacon <[email protected]>
Cc Waiman Long <[email protected]>
Cc Boqun Feng <[email protected]>
Cc "Paul E. McKenney" <[email protected]>
Cc Metin Kaya <[email protected]>
Cc Xuewen Yan <[email protected]>
Cc K Prateek Nayak <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Daniel Lezcano <[email protected]>

Connor O'Brien (2):
sched: Add move_queued_task_locked helper
sched: Consolidate pick_*_task to task_is_pushable helper

John Stultz (1):
sched: Split out __schedule() deactivate task logic into a helper

Juri Lelli (2):
locking/mutex: Make mutex::wait_lock irq safe
locking/mutex: Expose __mutex_owner()

Peter Zijlstra (2):
locking/mutex: Remove wakeups from under mutex::wait_lock
sched: Split scheduler and execution contexts

 kernel/futex/pi.c               |   6 +-
 kernel/locking/mutex.c          |  59 ++++++---------
 kernel/locking/mutex.h          |  27 +++++++
 kernel/locking/rtmutex.c        |  49 +++++++++----
 kernel/locking/rtmutex_api.c    |  11 ++-
 kernel/locking/rtmutex_common.h |   3 +-
 kernel/locking/rwbase_rt.c      |   8 ++-
 kernel/locking/rwsem.c          |   4 +-
 kernel/locking/spinlock_rt.c    |   3 +-
 kernel/locking/ww_mutex.h       |  51 +++++++------
 kernel/sched/core.c             | 123 ++++++++++++++++++--------------
 kernel/sched/deadline.c         |  57 ++++++---------
 kernel/sched/fair.c             |  28 ++++----
 kernel/sched/pelt.c             |   2 +-
 kernel/sched/rt.c               |  67 +++++++----------
 kernel/sched/sched.h            |  50 ++++++++++++-
 kernel/sched/syscalls.c         |   4 +-
 17 files changed, 324 insertions(+), 228 deletions(-)
Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog