OSDN Git Service

sched: use the old min_vruntime when normalizing on dequeue
authorDima Zavin <dima@android.com>
Wed, 29 Sep 2010 00:35:31 +0000 (17:35 -0700)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:57:58 +0000 (13:57 -0700)
commitae0429e84759446975ea243a99d6ba0803b6428f
tree9855d078c11537a9aa654b2553d7b9f2199de130
parent9546f279dd8951603822fa248a579cb07065bf3e
sched: use the old min_vruntime when normalizing on dequeue

After pulling the thread off the run-queue during a cgroup change,
the cfs_rq.min_vruntime gets recalculated. The dequeued thread's vruntime
then gets normalized to this new value. This can then lead to the thread
getting an unfair boost in the new group if the vruntime of the next
task in the old run-queue was way further ahead.

Cc: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Dima Zavin <dima@android.com>
kernel/sched_fair.c