* [PATCH] cpusets: fix wrong domain attr updates
@ 2008-07-16 9:01 Miao Xie
0 siblings, 0 replies; only message in thread
From: Miao Xie @ 2008-07-16 9:01 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux-Kernel, Paul Jackson, Paul Menage, Hidetoshi Seto
fix wrong domain attr updates, or we will always update the first sched domain
attr.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
kernel/cpuset.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 459d601..d2cc67d 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -679,7 +679,9 @@ restart:
if (apn == b->pn) {
cpus_or(*dp, *dp, b->cpus_allowed);
b->pn = -1;
- update_domain_attr(dattr, b);
+ if (dattr)
+ update_domain_attr(dattr
+ + nslot, b);
}
}
nslot++;
--
1.5.4.rc3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-16 9:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 9:01 [PATCH] cpusets: fix wrong domain attr updates Miao Xie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox