Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759335AbYGPJEB (ORCPT ); Wed, 16 Jul 2008 05:04:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755436AbYGPJDu (ORCPT ); Wed, 16 Jul 2008 05:03:50 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:59453 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751754AbYGPJDu (ORCPT ); Wed, 16 Jul 2008 05:03:50 -0400 Message-ID: <487DB907.7060403@cn.fujitsu.com> Date: Wed, 16 Jul 2008 17:01:59 +0800 From: Miao Xie Reply-To: miaox@cn.fujitsu.com User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Andrew Morton CC: Linux-Kernel , Paul Jackson , Paul Menage , Hidetoshi Seto Subject: [PATCH] cpusets: fix wrong domain attr updates Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 902 Lines: 35 fix wrong domain attr updates, or we will always update the first sched domain attr. Signed-off-by: Miao Xie Cc: Hidetoshi Seto --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/