Skip to content

Commit

Permalink
cpuset: fix the WARN_ON() in update_nodemasks_hier()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lizf-os authored and htejun committed Jul 30, 2014
1 parent 5de4fa1 commit a138126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a138126

Please sign in to comment.