1
0
Files
linux/kernel
Oleg Nesterov f7b4cddcc5 do CPU_DEAD migrating under read_lock(tasklist) instead of write_lock_irq(tasklist)
Currently move_task_off_dead_cpu() is called under
write_lock_irq(tasklist).  This means it can't use task_lock() which is
needed to improve migrating to take task's ->cpuset into account.

Change the code to call move_task_off_dead_cpu() with irqs enabled, and
change migrate_live_tasks() to use read_lock(tasklist).

This all is a preparation for the futher changes proposed by Cliff Wickman, see
	http://marc.info/?t=117327786100003

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Cliff Wickman <cpw@sgi.com>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:43:03 -07:00
..
2007-10-17 08:42:55 -07:00
2007-10-17 08:42:55 -07:00
2007-10-01 07:52:23 -07:00
2007-10-16 09:43:10 -07:00
2007-10-11 22:11:12 +02:00
2007-10-11 22:11:12 +02:00
2007-10-16 09:43:04 -07:00
2007-10-15 17:00:13 +02:00
2007-10-01 07:52:23 -07:00
2007-10-17 08:42:48 -07:00
2007-10-17 08:42:59 -07:00
2007-08-27 10:27:48 -07:00