diff options
| author | Chen Ridong <chenridong@huawei.com> | 2025-11-11 13:24:28 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-11-11 11:47:08 -1000 |
| commit | 648d43da64f0221ab1050825b28995c17ce091a4 (patch) | |
| tree | bda1159a61864b735bce74099e177a0b20e9dd6f /kernel/cgroup/cpuset-internal.h | |
| parent | 0241e9e2bda3077ca6ec90f0a22120ba7a73e43b (diff) | |
| download | linux-next-648d43da64f0221ab1050825b28995c17ce091a4.tar.gz linux-next-648d43da64f0221ab1050825b28995c17ce091a4.zip | |
cpuset: remove global remote_children list
The remote_children list is used to track all remote partitions attached
to a cpuset. However, it serves no other purpose. Using a boolean flag to
indicate whether a cpuset is a remote partition is a more direct approach,
making remote_children unnecessary.
This patch replaces the list with a remote_partition flag in the cpuset
structure and removes remote_children entirely.
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cpuset-internal.h')
| -rw-r--r-- | kernel/cgroup/cpuset-internal.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/cgroup/cpuset-internal.h b/kernel/cgroup/cpuset-internal.h index 5cac42c5fd97..01976c8e7d49 100644 --- a/kernel/cgroup/cpuset-internal.h +++ b/kernel/cgroup/cpuset-internal.h @@ -159,6 +159,13 @@ struct cpuset { int partition_root_state; /* + * Whether cpuset is a remote partition. + * It used to be a list anchoring all remote partitions — we can switch back + * to a list if we need to iterate over the remote partitions. + */ + bool remote_partition; + + /* * number of SCHED_DEADLINE tasks attached to this cpuset, so that we * know when to rebuild associated root domain bandwidth information. */ @@ -172,9 +179,6 @@ struct cpuset { /* Handle for cpuset.cpus.partition */ struct cgroup_file partition_file; - /* Remote partition silbling list anchored at remote_children */ - struct list_head remote_sibling; - /* Used to merge intersecting subsets for generate_sched_domains */ struct uf_node node; }; |
