]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix the min_vruntime update logic in dequeue_entity()
authorSong Muchun <smuchun@gmail.com>
Sun, 14 Oct 2018 11:26:12 +0000 (19:26 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Oct 2018 07:36:01 +0000 (09:36 +0200)
commit1cc34e603556df179b1d9eef9a44bb608b0d2328
tree60ad2ff322aa6fef86deffc68288014f557524ad
parent67bbb6801f25ccf7212445573eda07dd82e849cd
sched/fair: Fix the min_vruntime update logic in dequeue_entity()

The comment and the code around the update_min_vruntime() call in
dequeue_entity() are not in agreement.

From commit:

  abb5a0be1296 ("sched/fair: Fix min_vruntime tracking")

I think that we want to update min_vruntime when a task is sleeping/migrating.
So, the check is inverted there - fix it.

Signed-off-by: Song Muchun <smuchun@gmail.com>
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>
Fixes: abb5a0be1296 ("sched/fair: Fix min_vruntime tracking")
Link: http://lkml.kernel.org/r/20181014112612.2614-1-smuchun@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c