Cc: Andrew Morton <akpm@...>, Dean Nelson <dcn@...>, Jes Sorensen <jes@...>, <containers@...>, Oleg Nesterov <oleg@...>, Christoph Hellwig <hch@...>, <linux-kernel@...>, Tony Luck <tony.luck@...>, <rja@...>
One of my earlier patches guarantees that kthreadd will have pid == 2.
daemonize actually explicitly reparents to init so using daemonize and
kernel_thread provides no help at all with respect to scaling. It in
fact guarantees you will be on init's list of child processes.
The work to enhance wait is a little tricky and it conflicts with the
utrace patches, which makes it hard to pursue at the moment.
I'm actually sorting out kthread stop so I can complete the pid namespace.
But since all kthreads are children of kthreadd this helps in a small
way with the scaling issue.
Eric
-