Commit a1381268 authored by Li Zefan's avatar Li Zefan Committed by Tejun Heo

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: default avatarMike Qiu <qiudayu@linux.vnet.ibm.com>
Tested-by: default avatarMike Qiu <qiudayu@linux.vnet.ibm.com>
Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
parent 5de4fa13
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment