Re: [BUG] Cpuset: dynamic sched domain crash on > 16 cpu systems.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul,

I don't have these type of systems. So can you please check if the appended
patch fixes your issue.

thanks,
suresh

--

Use the correct groups while initializing sched groups power for
allnodes_domain. This fixes the crash observed while creating
exclusive cpusets.

Signed-off-by: Suresh Siddha <[email protected]>

--- linux-2.6.18-rc1/kernel/sched.c~	2006-07-20 20:54:44.425601384 -0700
+++ linux-2.6.18-rc1/kernel/sched.c	2006-07-20 21:05:05.535178376 -0700
@@ -6457,7 +6457,12 @@ static int build_sched_domains(const cpu
 	for (i = 0; i < MAX_NUMNODES; i++)
 		init_numa_sched_groups_power(sched_group_nodes[i]);
 
-	init_numa_sched_groups_power(sched_group_allnodes);
+	if (sched_group_allnodes) {
+		int group = cpu_to_allnodes_group(first_cpu(*cpu_map));
+		struct sched_group *sg = &sched_group_allnodes[group];
+
+		init_numa_sched_groups_power(sg);
+	}
 #endif
 
 	/* Attach the domains */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux