diff options
author | Peter Zijlstra <peterz@infradead.org> | 2019-01-30 14:41:04 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-02-04 09:13:21 +0100 |
commit | 5d299eabea5a251fbf66e8277704b874bbba92dc (patch) | |
tree | dde557b31905049b265f4912deb0784ad691680b /init | |
parent | c546951d9c9300065bad253ecdf1ac59ce9d06c8 (diff) | |
download | linux-5d299eabea5a251fbf66e8277704b874bbba92dc.tar.bz2 |
sched/fair: Add tmp_alone_branch assertion
The magic in list_add_leaf_cfs_rq() requires that at the end of
enqueue_task_fair():
rq->tmp_alone_branch == &rq->lead_cfs_rq_list
If this is violated, list integrity is compromised for list entries
and the tmp_alone_branch pointer might dangle.
Also, reflow list_add_leaf_cfs_rq() while there. This looses one
indentation level and generates a form that's convenient for the next
patch.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions