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 12:17:58 -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: <20090918185425.GA16620@xxxxxxxxxx>
- References: <20090901130436.GA22514@xxxxxxxxxx> <20090901131440.GA29783@xxxxxxx> <20090901133709.GA24041@xxxxxxxxxx> <20090901135925.GA9083@xxxxxxx> <20090901145526.GA31317@xxxxxxxxxx> <20090901165235.GA9105@xxxxxxxxxx> <m13a76xnbw.fsf@xxxxxxxxxxxxxxxxx> <20090902091340.GA5173@xxxxxxxxxx> <20090904073749.GB20598@xxxxxxx> <20090918163241.GA8556@desktop> <20090918185425.GA16620@xxxxxxxxxx>
- User-agent: Alpine 2.01 (LFD 1184 2008-12-16)
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
--
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
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]