[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimM1IHPQY-Scjh7D4hCcPeJIemf6fpzn6lqBrn0@mail.gmail.com>
Date: Mon, 28 Jun 2010 08:03:27 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Ingo Molnar <mingo@...e.hu>, Ilya Loginov <isloginov@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] init: Fix race between init and kthreadd -v3
On Mon, Jun 28, 2010 at 7:51 AM, Peter Zijlstra <peterz@...radead.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists