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)
committerIliyan Malchev <malchev@google.com>
Mon, 23 May 2011 22:43:44 +0000 (15:43 -0700)
commitfe0a354a8b37686dd16276d0d843c6db8edab8f6
treeac273348e5dafe19c560bc8e85591cf5ffa91d78
parent3e073841fde80c1e2278f631376047f36d5222ad
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