Skip to content

Commit b6fbbf3

Browse files
jlelliingomolnar
authored andcommitted
cgroup/cpuset: Update stale generate_sched_domains() comments
Commit: fc560a2 ("cpuset: replace cpuset->stack_list with cpuset_for_each_descendant_pre()") removed the local list (q) that was used to perform a top-down scan of all cpusets; however, comments mentioning it were not updated. Update comments to reflect current implementation. Signed-off-by: Juri Lelli <juri.lelli@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: cgroups@vger.kernel.org Cc: lizefan@huawei.com Link: http://lkml.kernel.org/r/20181219133445.31982-1-juri.lelli@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 1a8b454 commit b6fbbf3

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎kernel/cgroup/cpuset.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,10 @@ static inline int nr_cpusets(void)
740740
* Must be called with cpuset_mutex held.
741741
*
742742
* The three key local variables below are:
743-
* q - a linked-list queue of cpuset pointers, used to implement a
744-
* top-down scan of all cpusets. This scan loads a pointer
745-
* to each cpuset marked is_sched_load_balance into the
746-
* array 'csa'. For our purposes, rebuilding the schedulers
747-
* sched domains, we can ignore !is_sched_load_balance cpusets.
743+
* cp - cpuset pointer, used (together with pos_css) to perform a
744+
* top-down scan of all cpusets. For our purposes, rebuilding
745+
* the schedulers sched domains, we can ignore !is_sched_load_
746+
* balance cpusets.
748747
* csa - (for CpuSet Array) Array of pointers to all the cpusets
749748
* that need to be load balanced, for convenient iterative
750749
* access by the subsequent code that finds the best partition,
@@ -775,7 +774,7 @@ static inline int nr_cpusets(void)
775774
static int generate_sched_domains(cpumask_var_t **domains,
776775
struct sched_domain_attr **attributes)
777776
{
778-
struct cpuset *cp; /* scans q */
777+
struct cpuset *cp; /* top-down scan of cpusets */
779778
struct cpuset **csa; /* array of all cpuset ptrs */
780779
int csn; /* how many cpuset ptrs in csa so far */
781780
int i, j, k; /* indices for partition finding loops */

0 commit comments

Comments
 (0)