From: Waiman Long Date: Mon, 7 Apr 2025 21:21:04 +0000 (-0400) Subject: cgroup/cpuset: Fix obsolete comment in cpuset_css_offline() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6e6f9170dc6a4660f7a90d67122a08ca919b5f53;p=users%2Fdwmw2%2Flinux.git cgroup/cpuset: Fix obsolete comment in cpuset_css_offline() Move the partition disablement comment from cpuset_css_offline() to cpuset_css_killed() and reword it to remove the remnant of sched.partition. Suggested-by: Michal Koutný Signed-off-by: Waiman Long Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 583f20942802e..1497a2a4b2a35 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -3538,11 +3538,7 @@ out_unlock: * will call rebuild_sched_domains_locked(). That is not needed * in the default hierarchy where only changes in partition * will cause repartitioning. - * - * If the cpuset has the 'sched.partition' flag enabled, simulate - * turning 'sched.partition" off. */ - static void cpuset_css_offline(struct cgroup_subsys_state *css) { struct cpuset *cs = css_cs(css); @@ -3560,6 +3556,11 @@ static void cpuset_css_offline(struct cgroup_subsys_state *css) cpus_read_unlock(); } +/* + * If a dying cpuset has the 'cpus.partition' enabled, turn it off by + * changing it back to member to free its exclusive CPUs back to the pool to + * be used by other online cpusets. + */ static void cpuset_css_killed(struct cgroup_subsys_state *css) { struct cpuset *cs = css_cs(css);