diff options
author | Tejun Heo <tj@kernel.org> | 2016-12-27 14:49:04 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-12-27 14:49:04 -0500 |
commit | b4b90a8e86f2539a028d68077b45e8511dd2adb0 (patch) | |
tree | 27bbbcc7d7e18b1f288e982fc01d2b2f631ac5c8 /arch/arm/mach-efm32 | |
parent | e90cbebc3fa5caea4c8bfeb0d0157a0cee53efc7 (diff) | |
download | linux-b4b90a8e86f2539a028d68077b45e8511dd2adb0.tar.bz2 |
cgroup: reimplement reading "cgroup.procs" on cgroup v2
On v1, "tasks" and "cgroup.procs" are expected to be sorted which
makes the implementation expensive and unnecessarily complicated
involving result cache management.
v2 doesn't have the sorting requirement, so it can just iterate and
print processes one by one. seq_files are either read sequentially or
reset to position zero, so the implementation doesn't even need to
worry about seeking.
This keeps the css_task_iter across multiple read(2) calls and
migrations of new processes always append won't miss processes which
are newly migrated in before each read(2).
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'arch/arm/mach-efm32')
0 files changed, 0 insertions, 0 deletions