]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
cgroup/cpuset: Fix obsolete comment in cpuset_css_offline()
authorWaiman Long <longman@redhat.com>
Mon, 7 Apr 2025 21:21:04 +0000 (17:21 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 7 Apr 2025 22:04:58 +0000 (12:04 -1000)
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ý <mkoutny@suse.com>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c

index 583f20942802e98eb0f63e45bbd4ce39baf56150..1497a2a4b2a35e1071a44ca46028adf109f3da02 100644 (file)
@@ -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);