Skip to content

Commit a138126

Browse files
lizf-oshtejun
authored andcommitted
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>
1 parent 5de4fa1 commit a138126

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/cpuset.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ static void update_nodemasks_hier(struct cpuset *cs, nodemask_t *new_mems)
11361136
mutex_unlock(&callback_mutex);
11371137

11381138
WARN_ON(!cgroup_on_dfl(cp->css.cgroup) &&
1139-
nodes_equal(cp->mems_allowed, cp->effective_mems));
1139+
!nodes_equal(cp->mems_allowed, cp->effective_mems));
11401140

11411141
update_tasks_nodemask(cp);
11421142

0 commit comments

Comments
 (0)