Re: [PATCH] init: Fix race between init and kthreadd -v3
From: Linus Torvalds
Date: Mon Jun 28 2010 - 11:03:44 EST
On Mon, Jun 28, 2010 at 7:51 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/