Re: [PATCH 4/4] sched,fair: Fix PELT integrity for new tasks

From: Mike Galbraith
Date: Mon Aug 01 2016 - 07:57:59 EST


On Mon, 2016-08-01 at 17:56 +0800, Wanpeng Li wrote:
> 2016-08-01 17:31 GMT+08:00 Mike Galbraith <umgwanakikbuti@xxxxxxxxx>:
> > On Mon, 2016-08-01 at 15:30 +0800, Wanpeng Li wrote:
> >
> > > What's the meaning of "the task is hashed before we call
> > > wake_up_new_task()"?
> >
> > See fork.c::copy_process()
> >
> > /*
> > * Make it visible to the rest of the system, but dont wake
> > it up yet.
> > * Need tasklist lock for parent etc handling!
> > */
> > write_lock_irq(&tasklist_lock);
> > ....
>
> Thanks Mike, so here "is hashed" means that add to list instead of
> real hashing.

Yeah.

-Mike