Re: [PATCH] init: Fix race between init and kthreadd -v3

Linus Torvalds
2010-06-28T15:03:41Z

On Mon, Jun 28, 2010 at 7:51 AM, Peter Zijlstra <peterz@infradead.org> wrote:
>
>  static int __init kernel_init(void * unused)
>  {
> +       /*
> +        * Wait until kthreadd is all set-up.
> +        */
> +       wait_for_completion(&kthreadd_done);
>        lock_kernel();

Ack. Looks sane.

Linus