Skip to content

sched/proxy: doodles..

Peter Zijlstra lkml 1 version Applied

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

  1. v1 Latest6 patches 31 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6sched/proxy: Remove superfluous clear_task_blocked_in()kernel/sched/core.c+0 -316 replies
2/6sched/proxy: Optimize try_to_wake_up()kernel/sched/core.c+4 -101 reply
3/6sched: Be more strict about p->is_blockedkernel/sched/core.c+2 -11 reply
4/6sched/proxy: Switch proxy to use p->is_blockedkernel/sched/core.c+6 -64 replies
5/6sched/proxy: Remove PROXY_WAKINGinclude/linux/sched.h kernel/locking/mutex.c kernel/locking/ww_mutex.h +1 more+7 -538 replies
6/6sched: Simplify ttwu_runnable()kernel/sched/core.c+6 -70 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchJohn Stultz
1/6A-b
2/6A-b
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] sched/proxy: doodles..

This goes on top of queue:sched/proxy.

I was trying to do some cleanups and playing around with that PROXY_WAKING removal, and also moving towards using ->is_blocked to replace the core se.sched_delayed usage.

But aside from making a few silly mistakes and taking far too long to figure out WTF happened, I've ran into a snag with the scheme to remove PROXY_WAKING.

This happens in patch #4, where we switch the proxy paths to be guarded by ->is_blocked, rather than ->blocked_on. This works fine for schedule() / pick_next_task, since that guarantees there are no delayed tasks.

However ttwu_runnable() has no such luck, and if ->is_blocked is all we have, then it turns out that we'll always fully block delayed tasks and send then through the long path.

Now, I did me some ttwu-delayed patches a while ago, and Mike has been poking me about them. Those patches pick out the delayed things before we take locks, so perhaps we can resolve this that way. I'll have to poke a bit more.

In the meantime, I figured I'd share the patches I got... I think at least the first 3 might live :-)