[PATCH] do_sched_setscheduler(): don't take tasklist_lock
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 29 Sep 2006 09:00:48 +0000 (02:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:17 +0000 (09:18 -0700)
commit5fe1d75f34974046fffcca5e22fb8a7b42fded33
tree831e360aa8d7d37c7c5202937a2f617ebea6e737
parentc9472e0f28cd2f0695a0ac3a0b4bd33f21714a7e
[PATCH] do_sched_setscheduler(): don't take tasklist_lock

Use rcu locks instead. sched_setscheduler() now takes ->siglock
before reading ->signal->rlim[].

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c