Skip to content

Commit 7b78298

Browse files
Chen Ridonggregkh
authored andcommitted
cpuset: Fix missing adaptation for cpuset_is_populated
Commit b1bcaed ("cpuset: Treat cpusets in attaching as populated") was backported to the long‑term support (LTS) branches. However, because commit d5cf4d3 ("cgroup/cpuset: Don't track # of local child partitions") was not backported, a corresponding adaptation to the backported code is still required. To ensure correct behavior, replace cgroup_is_populated with cpuset_is_populated in the partition_is_populated function. Cc: stable@vger.kernel.org # 6.1+ Fixes: b1bcaed ("cpuset: Treat cpusets in attaching as populated") Cc: Waiman Long <longman@redhat.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Chen Ridong <chenridong@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e94b369 commit 7b78298

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/cgroup/cpuset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static inline bool partition_is_populated(struct cpuset *cs,
347347
cs->attach_in_progress)
348348
return true;
349349
if (!excluded_child && !cs->nr_subparts)
350-
return cgroup_is_populated(cs->css.cgroup);
350+
return cpuset_is_populated(cs);
351351

352352
rcu_read_lock();
353353
cpuset_for_each_descendant_pre(cp, pos_css, cs) {

0 commit comments

Comments
 (0)