History

cgroup: Clean up css_set task traversal

css_task_iter stores pointer to head of each iterable list, this dates back to commit 0f0a2b4fa621 ("cgroup: reorganize css_task_iter") when we did not store cur_cset. Let us utilize list heads directly in cur_cset and streamline css_task_iter_advance_css_set a bit. This is no intentional function change.

Michal Koutný committed 6 years ago

Commit f43caa21 parent 9c974c72 files · +28 −36Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/cgroup.h+0−3
@@ -58,9 +58,6 @@ struct css_task_iter { · 57 unmodified lines
5858 struct list_head *tcset_head;
5959
6060 struct list_head *task_pos;
61− struct list_head *tasks_head;
62− struct list_head *mg_tasks_head;
63− struct list_head *dying_tasks_head;
6461
6562 struct list_head *cur_tasks_head;
6663 struct css_set *cur_cset;