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 Sat, 19 Sep 2009, Oleg Nesterov wrote:
>
> On 09/18, Linus Torvalds wrote:
> >
> > As to why pid == 0 wouldn't work, I don't know, but I'll take your word
> > for it.
>
> Say, admin wants to renice kthreadd or change its affinity. And we can't
> show kthread in /proc if its pid is 0.

Ok, so it's a "that's not good" kind of situation, rather than a "it
wouldn't work" one. Fair enough.

Of course, another way to do this would be to simply use CLONE_STOPPED to
create the 'init' task first, but not wake it up - and then wake it up
only after kthreadd exists.

I'm sure there are other things we could do ;)

Linus


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