diff options
author | Li Zefan <lizefan@huawei.com> | 2014-07-30 15:07:13 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-07-30 11:26:58 -0400 |
commit | a13812683f1118ee4deed88d8d9bc2c268358b2e (patch) | |
tree | ca8f04658aba2a9b16a755c7b402426d8301d1b1 /kernel/cpuset.c | |
parent | 5de4fa13c4df302db41e80ca679df24fdad0d661 (diff) | |
download | linux-stable-a13812683f1118ee4deed88d8d9bc2c268358b2e.tar.gz linux-stable-a13812683f1118ee4deed88d8d9bc2c268358b2e.tar.bz2 linux-stable-a13812683f1118ee4deed88d8d9bc2c268358b2e.zip |
cpuset: fix the WARN_ON() in update_nodemasks_hier()
The WARN_ON() is used to check if we break the legal hierarchy, on
which the effective mems should be equal to configured mems.
Reported-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Tested-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r-- | kernel/cpuset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index f337f42a07ac..9d7264beb74f 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -1136,7 +1136,7 @@ static void update_nodemasks_hier(struct cpuset *cs, nodemask_t *new_mems) mutex_unlock(&callback_mutex); WARN_ON(!cgroup_on_dfl(cp->css.cgroup) && - nodes_equal(cp->mems_allowed, cp->effective_mems)); + !nodes_equal(cp->mems_allowed, cp->effective_mems)); update_tasks_nodemask(cp); |