sched_domain: Don't use GFP_ATOMIC
PATCH 2/4 sched_domain: Don't use GFP_ATOMIC
Patch below (against 2.6.16-mm2) replaces GFP_ATOMIC allocation for sched_group_nodes with GFP_KERNEL based allocation.
Signed-off-by Srivatsa Vaddagiri <[email protected]
kernel/sched.c renamed from kernel/sched.c~sd_dontusegfpatomic +1 -1
@@ -6121,7 +6121,7 @@ static int build_sched_domains(const cpu* Allocate the per-node list of sched groups */ sched_group_nodes =kzalloc (sizeof (struct sched_group *)*MAX_NUMNODES , -GFP_ATOMIC ); +GFP_KERNEL );if (!sched_group_nodes) {printk (KERN_WARNING "Can not alloc sched group node list\n" );return -ENOMEM ;
_
Signature · 2 lines
Regards, vatsa