Skip to content

Commit

Permalink
cpusets: fix wrong domain attr updates
Browse files Browse the repository at this point in the history
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>
Cc: Paul Jackson <pj@sgi.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: <stable@kernel.org>	[2.6.26.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Miao Xie authored and Linus Torvalds committed Jul 22, 2008
1 parent 1673ad5 commit 91cd4d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,9 @@ static void rebuild_sched_domains(void)
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++;
Expand Down

0 comments on commit 91cd4d6

Please sign in to comment.