[lkml]   [2003]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectrace in smp idle task startup

I think it was there before, but I now noticed it:

The 2.5 SMP bootup path does now:

idle = fork_by_hand();
if (IS_ERR(idle))
panic("failed fork for CPU %d", cpu);

<----------- process on run queue ---------------->

* We remove it from the pidhash and the runqueue
* once we got the process:

But sched_init has been called before and the load balance timers
are already running. If you have multiple CPUs to start another CPU
could come and balance the idle thread away. Its registers contain
random values from fork_by_hand so it would likely crash.

It probably needs a __wake_up_forked_process that does not actually
put it onto an runqueue. Or did I miss something?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.020 / U:0.748 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site