summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2010-06-28 16:51:01 +0200
committerIngo Molnar <mingo@elte.hu>2010-06-28 18:21:30 +0200
commitb433c3d4549ae74935b585115f076c6fb7bc48fe (patch)
treefa69951fe2dcdfed7482976d6d6fc0a0bd5d1d5d /lib
parent0d98bb2656e9bd2dfda2d089db1fe1dbdab41504 (diff)
downloadop-kernel-dev-b433c3d4549ae74935b585115f076c6fb7bc48fe.zip
op-kernel-dev-b433c3d4549ae74935b585115f076c6fb7bc48fe.tar.gz
init, sched: Fix race between init and kthreadd
Ilya reported that on a very slow machine he could reliably reproduce a race between forking init and kthreadd. We first fork init so that it obtains pid-1, however since the scheduler is already fully running at this point it can preempt and run the init thread before we spawn and set kthreadd_task. The init thread can then attempt spawning kthreads without kthreadd being present which results in an OOPS. Reported-by: Ilya Loginov <isloginov@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> LKML-Reference: <1277736661.3561.110.camel@laptop> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud