diff options
| author | Tejun Heo <tj@kernel.org> | 2026-03-06 20:58:02 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-03-06 20:58:02 +0300 |
| commit | b0e4c2f8a0f0a60d10c427db4080181060014cac (patch) | |
| tree | 6a815d2b656867389c0587aeb82b5aaf85d93e3c /scripts/livepatch | |
| parent | a0b0f6c7d7f29f1ade9ec59699d02e3b153ee8e4 (diff) | |
| download | linux-b0e4c2f8a0f0a60d10c427db4080181060014cac.tar.xz | |
sched_ext: Implement cgroup subtree iteration for scx_task_iter
For the planned cgroup sub-scheduler support, enable/disable operations are
going to be subtree specific and iterating all tasks in the system for those
operations can be unnecessarily expensive and disruptive.
cgroup already has mechanisms to perform subtree task iterations. Implement
cgroup subtree iteration for scx_task_iter:
- Add optional @cgrp to scx_task_iter_start() which enables cgroup subtree
iteration.
- Make scx_task_iter use css_next_descendant_pre() and css_task_iter to
iterate all tasks in the cgroup subtree.
- Update all existing callers to pass NULL to maintain current behavior.
The two iteration mechanisms are independent and duplicate. It's likely that
scx_tasks can be removed in favor of always using cgroup iteration if
CONFIG_SCHED_CLASS_EXT depends on CONFIG_CGROUPS.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'scripts/livepatch')
0 files changed, 0 insertions, 0 deletions
