lkml.org 
[lkml]   [2011]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Bug in scheduler when using rt_mutex
From
Date
On Fri, 2011-01-21 at 20:24 +0800, Yong Zhang wrote:
> > Index: linux-2.6/kernel/sched.c
> > ===================================================================
> > --- linux-2.6.orig/kernel/sched.c
> > +++ linux-2.6/kernel/sched.c
> > @@ -2624,6 +2624,8 @@ void sched_fork(struct task_struct *p, i
> >
> > if (!rt_prio(p->prio))
> > p->sched_class = &fair_sched_class;
> > + else
> > + p->se.vruntime = 0;
>
> This can be moved to __sched_fork()

But we cannot do it unconditionally, we want to inherit the parent's
->vruntime when we're a fair task clone.


\
 
 \ /
  Last update: 2011-01-21 14:43    [W:0.216 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site