sched: balance callbacks v4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | sched: Replace post_schedule with a balance callback listkernel/ kernel/ kernel/ +1 more | +63 | 1 reply | |
| 2/18 | sched: Use replace normalize_task() with __sched_setscheduler()kernel/ | +23 | 0 replies | |
| 3/18 | sched: Allow balance callbacks for check_class_changed()kernel/ | +22 | 0 replies | |
| 4/18 | sched,rt: Remove return value from pull_rt_task()kernel/ | +11 | 0 replies | |
| 5/18 | sched,rt: Convert switched_{from,to}_rt() / prio_changed_rt() to balance callbackskernel/ | +19 | 0 replies | |
| 6/18 | sched,dl: Remove return value from pull_dl_task()kernel/ | +10 | 0 replies | |
| 7/18 | sched,dl: Convert switched_{from,to}_dl() / prio_changed_dl() to balance callbackskernel/ | +24 | 0 replies | |
| 8/18 | hrtimer: Remove HRTIMER_STATE_MIGRATEinclude/ kernel/ | +3 | 0 replies | |
| 9/18 | hrtimer: Fix hrtimer_is_queued() holekernel/ | +13 | 0 replies | |
| 10/18 | seqcount: Rename write_seqcount_barrier()fs/ include/ | +11 | 0 replies | |
| 11/18 | seqcount: Introduce raw_write_seqcount_barrier()include/ | +42 | 19 replies | |
| 12/18 | hrtimer: Allow hrtimer::function() to free the timerinclude/ kernel/ | +107 | 0 replies | |
| 13/18 | sched,dl: Fix sched class hopping CBS holekernel/ | +86 | 0 replies | |
| 14/18 | sched: Move code aroundkernel/ | +178 | 0 replies | |
| 15/18 | sched: Streamline the task migration locking a littlekernel/ | +34 | 0 replies | |
| 16/18 | lockdep: Simplify lock_release()kernel/ | +18 | 0 replies | |
| 17/18 | lockdep: Implement lock pinninginclude/ kernel/ | +90 | 0 replies | |
| 18/18 | sched,lockdep: Employ lock pinningkernel/ kernel/ kernel/ +2 more | +71 | 0 replies |
Reviews trailers per patch
1 of 18 patches has a Reviewed-by or Acked-by.
| Patch | Paul E. McKenney |
|---|---|
| 1/18 | |
| 2/18 | |
| 3/18 | |
| 4/18 | |
| 5/18 | |
| 6/18 | |
| 7/18 | |
| 8/18 | |
| 9/18 | |
| 10/18 | |
| 11/18 | R-b |
| 12/18 | |
| 13/18 | |
| 14/18 | |
| 15/18 | |
| 16/18 | |
| 17/18 | |
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/18] sched: balance callbacks v4
Mike stumbled over a cute bug where the RT/DL balancing ops caused a bug.
The exact scenario is __sched_setscheduler() changing a (runnable) task from FIFO to OTHER. In swiched_from_rt(), where we do pull_rt_task() we temporarity drop rq->lock. This gap allows regular cfs load-balancing to step in and migrate our task.
However, check_class_changed() will happily continue with switched_to_fair() which assumes our task is still on the old rq and makes the kernel go boom.
Instead of trying to patch this up and make things complicated; simply disallow these methods to drop rq->lock and extend the current post_schedule stuff into a balancing callback list, and use that.
This survives Mike's testcase.
Changes since -v3:
- reworked the hrtimer stuff, again. -- Kirill, Oleg
- small changes to the new lockdep stuff
Changes since -v2:
- reworked the hrtimer patch. -- Kirill, tglx
- added lock pinning
Changes since -v1:
- make SMP=n build,
- cured switched_from_dl()'s cancel_dl_timer().
no real tests on the new parts other than booting / building kernels.