aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2008-11-20 19:30:36 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-21 02:57:28 -0500
commit957ad0166e9f76a8561dafa5e14ef5bd3f5e9a3b (patch)
tree551a3e47438f88769f0fb2425ad4ad4b4df557cf /kernel
parentfc02e90c34bacd5d7bc77b832c65a8f06e1bd60e (diff)
sched: update comment for move_task_off_dead_cpu
Impact: cleanup This commit: commit f7b4cddcc5aca03e80e357360c9424dfba5056c2 Author: Oleg Nesterov <oleg@tv-sign.ru> Date: Tue Oct 16 23:30:56 2007 -0700 do CPU_DEAD migrating under read_lock(tasklist) instead of write_lock_irq(ta 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). ...forgot to update the comment in front of move_task_off_dead_cpu. Reference: http://lkml.org/lkml/2008/6/23/135 Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 93bfb086e60f..a6085d5166dd 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6094,7 +6094,6 @@ static int __migrate_task_irq(struct task_struct *p, int src_cpu, int dest_cpu)
6094 6094
6095/* 6095/*
6096 * Figure out where task on dead CPU should go, use force if necessary. 6096 * Figure out where task on dead CPU should go, use force if necessary.
6097 * NOTE: interrupts should be disabled by the caller
6098 */ 6097 */
6099static void move_task_off_dead_cpu(int dead_cpu, struct task_struct *p) 6098static void move_task_off_dead_cpu(int dead_cpu, struct task_struct *p)
6100{ 6099{