Re: [RFC] Patch: dynticks: idle load balancing

From: Ingo Molnar
Date: Tue Dec 19 2006 - 15:16:16 EST



find below another bugfix for the dynticks-sched patch. (this bug caused
crashed under a stresstest)

Ingo

---
kernel/sched.c | 2 ++
1 file changed, 2 insertions(+)

Index: linux/kernel/sched.c
===================================================================
--- linux.orig/kernel/sched.c
+++ linux/kernel/sched.c
@@ -3015,6 +3015,8 @@ static void run_rebalance_domains(struct
restart:
if (idle_cpu(local_cpu) && notick.load_balancer == local_cpu) {
this_cpu = first_cpu(cpus);
+ if (unlikely(this_cpu >= NR_CPUS))
+ return;
this_rq = cpu_rq(this_cpu);
cpu_clear(this_cpu, cpus);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/