Skip to content

sched: idle_balance() cleanup and fix

Daniel Lezcano lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesIn review
  2. v14 patches 15 repliesSuperseded

Changes in v2 from the cover letter

* fixed compilation errors when CONFIG_SMP=n

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched: Remove cpu parameter for idle_balance()kernel/sched/core.c kernel/sched/fair.c kernel/sched/sched.h+5 -41 reply
2/3sched: Fix race in idle_balance()kernel/sched/fair.c+7 -06 replies
3/3sched: Move idle_stamp up to the corekernel/sched/core.c kernel/sched/fair.c kernel/sched/sched.h+18 -174 replies

Reviews trailers per patch

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

PatchAlex ShiPreeti U Murthy
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH V2 0/3] sched: idle_balance() cleanup and fix

Peter,

this patchset replace the beginning of the previous mixed one which was not yet commited [1] without changes except a compilation error fix for UP kernel config. It is refreshed against tip/sched/core.

As the UP config compilation is broken on the previous patchset, git bisect is no longer safe for it. You can apply this small serie and drop the 3 first patches of the previous series [1], or ignore it and I will bring the fix after you applied [1].

It cleanups the idle_balance function parameters by passing the struct rq only, fixes a race in the idle_balance function and finally move the idle_stamp from fair.c to core.c. I am aware it will return back to fair.c with Peter's pending patches but at least it changes the idle_balance() function to return true if a balance occured.

[1] https://www.mail-archive.com/[email protected]/msg577271.html

Changelog:
V2:
* fixed compilation errors when CONFIG_SMP=n

V1: initial post

Daniel Lezcano (3):
sched: Remove cpu parameter for idle_balance()
sched: Fix race in idle_balance()
sched: Move idle_stamp up to the core

 kernel/sched/core.c  |   13 +++++++++++--
 kernel/sched/fair.c  |   20 +++++++++++++-------
 kernel/sched/sched.h |    8 +-------
 3 files changed, 25 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.9.5