aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cgroup-defs.h3
-rw-r--r--include/linux/cgroup.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h
index 17444505c870..62413c3e2f4b 100644
--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -211,6 +211,9 @@ struct css_set {
211 */ 211 */
212 struct list_head e_cset_node[CGROUP_SUBSYS_COUNT]; 212 struct list_head e_cset_node[CGROUP_SUBSYS_COUNT];
213 213
214 /* all css_task_iters currently walking this cset */
215 struct list_head task_iters;
216
214 /* For RCU-protected deletion */ 217 /* For RCU-protected deletion */
215 struct rcu_head rcu_head; 218 struct rcu_head rcu_head;
216}; 219};
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index bdfdb3a1a83c..a9dcf0e76865 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -42,6 +42,10 @@ struct css_task_iter {
42 struct list_head *task_pos; 42 struct list_head *task_pos;
43 struct list_head *tasks_head; 43 struct list_head *tasks_head;
44 struct list_head *mg_tasks_head; 44 struct list_head *mg_tasks_head;
45
46 struct css_set *cur_cset;
47 struct task_struct *cur_task;
48 struct list_head iters_node; /* css_set->task_iters */
45}; 49};
46 50
47extern struct cgroup_root cgrp_dfl_root; 51extern struct cgroup_root cgrp_dfl_root;