kthread: move sched-realeted initialization from kthreadd context
authorOleg Nesterov <oleg@redhat.com>
Thu, 9 Apr 2009 15:50:36 +0000 (09:50 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 9 Apr 2009 00:20:37 +0000 (09:50 +0930)
commit1c99315bb36b5d776210546d438ca928dc9b1f22
treeaa43f3ffe76fd1aed66ed9e4a433c5f310fd7e74
parent3217ab97f14c5c8f9f975ed8c40c351164b0b10e
kthread: move sched-realeted initialization from kthreadd context

kthreadd is the single thread which implements ths "create" request, move
sched_setscheduler/etc from create_kthread() to kthread_create() to
improve the scalability.

We should be careful with sched_setscheduler(), use _nochek helper.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Vitaliy Gusev <vgusev@openvz.org
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/kthread.c