Skip to contentSkip to conversation

cpusets: fix wrong domain attr updates

PATCH New Miao Xie 1 participant 1 message Jul 16, 2008

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 1/1 cpusets: fix wrong domain attr updates

fix wrong domain attr updates, or we will always update the first sched domain attr.

Cc Hidetoshi Seto <[email protected]>
---
 kernel/cpuset.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
kernel/cpuset.c +3 -1
index 459d601..d2cc67d 100644
@@ -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++;
Signature · 1 line
1.5.4.rc3