Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 18 Sep 2009 16:38:33 -0700 (PDT)
- Cc: Wu Fei <at.wufei@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>, arjan@xxxxxxxxxxxxx, jeremy@xxxxxxxx, mschmidt@xxxxxxxxxx, mingo@xxxxxxxxxx, hpa@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, tj@xxxxxxxxxx, tglx@xxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linux-tip-commits@xxxxxxxxxxxxxxx, Rusty Russell <rusty@xxxxxxxxxxxxxxx>
- In-reply-to: <20090918232215.GA25517@xxxxxxxxxx>
- References: <20090901145526.GA31317@xxxxxxxxxx> <20090901165235.GA9105@xxxxxxxxxx> <m13a76xnbw.fsf@xxxxxxxxxxxxxxxxx> <20090902091340.GA5173@xxxxxxxxxx> <20090904073749.GB20598@xxxxxxx> <20090918163241.GA8556@desktop> <20090918185425.GA16620@xxxxxxxxxx> <alpine.LFD.2.01.0909181217270.4950@xxxxxxxxxxxxxxxxxxxxx> <20090918211218.GA19351@xxxxxxxxxx> <alpine.LFD.2.01.0909181504400.4950@xxxxxxxxxxxxxxxxxxxxx> <20090918232215.GA25517@xxxxxxxxxx>
- User-agent: Alpine 2.01 (LFD 1184 2008-12-16)
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
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
- References:
- Re: [PATCH] kthreads: Fix startup synchronization boot crash
- [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
- Re: [PATCH 0/1] kthreads: simplify !kthreadd_task logic, kill kthreadd_task_init_done
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]