lkml.org 
[lkml]   [2009]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done


On Fri, 18 Sep 2009, Oleg Nesterov wrote:
> > rcu_scheduler_starting();
> > - kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND);
> > - numa_default_policy();
> > pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES);
> > kthreadd_task = find_task_by_pid_ns(pid, &init_pid_ns);
> > + kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND);
>
> We can't do this. kernel_init() should run with ->pid == 1, we are
> going to exec /sbin/init.

Umm - why not just add CLONE_PID to the 'kthreadd' creation, then?

Linus


\
 
 \ /
  Last update: 2009-10-18 23:28    [W:0.102 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site