diff options
author | Srivatsa Vaddagiri <vatsa@in.ibm.com> | 2006-06-27 05:54:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:45 -0400 |
commit | 51888ca25a03125e742ef84d4ddfd74e139707a0 (patch) | |
tree | b15e50f3b67f6e2b94b783fce603d4a1f54a8189 /include/linux | |
parent | 615052dc3bf96278a843a64d3d1eea03532028c3 (diff) |
[PATCH] sched_domain: handle kmalloc failure
Try to handle mem allocation failures in build_sched_domains by bailing out
and cleaning up thus-far allocated memory. The patch has a direct consequence
that we disable load balancing completely (even at sibling level) upon *any*
memory allocation failure.
[Lee.Schermerhorn@hp.com: bugfix]
Signed-off-by: Srivatsa Vaddagir <vatsa@in.ibm.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 74a1e39e0d3d..ab8ffc54423a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -639,7 +639,7 @@ struct sched_domain { | |||
639 | #endif | 639 | #endif |
640 | }; | 640 | }; |
641 | 641 | ||
642 | extern void partition_sched_domains(cpumask_t *partition1, | 642 | extern int partition_sched_domains(cpumask_t *partition1, |
643 | cpumask_t *partition2); | 643 | cpumask_t *partition2); |
644 | 644 | ||
645 | /* | 645 | /* |