diff options
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 836b3557bb76..9e9b7efa180b 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -77,10 +77,11 @@ static inline void css_get(struct cgroup_subsys_state *css) | |||
77 | * css_get() | 77 | * css_get() |
78 | */ | 78 | */ |
79 | 79 | ||
80 | extern void __css_put(struct cgroup_subsys_state *css); | ||
80 | static inline void css_put(struct cgroup_subsys_state *css) | 81 | static inline void css_put(struct cgroup_subsys_state *css) |
81 | { | 82 | { |
82 | if (!test_bit(CSS_ROOT, &css->flags)) | 83 | if (!test_bit(CSS_ROOT, &css->flags)) |
83 | atomic_dec(&css->refcnt); | 84 | __css_put(css); |
84 | } | 85 | } |
85 | 86 | ||
86 | struct cgroup { | 87 | struct cgroup { |
@@ -112,6 +113,13 @@ struct cgroup { | |||
112 | * tasks in this cgroup. Protected by css_set_lock | 113 | * tasks in this cgroup. Protected by css_set_lock |
113 | */ | 114 | */ |
114 | struct list_head css_sets; | 115 | struct list_head css_sets; |
116 | |||
117 | /* | ||
118 | * Linked list running through all cgroups that can | ||
119 | * potentially be reaped by the release agent. Protected by | ||
120 | * release_list_lock | ||
121 | */ | ||
122 | struct list_head release_list; | ||
115 | }; | 123 | }; |
116 | 124 | ||
117 | /* A css_set is a structure holding pointers to a set of | 125 | /* A css_set is a structure holding pointers to a set of |
@@ -293,7 +301,6 @@ struct task_struct *cgroup_iter_next(struct cgroup *cont, | |||
293 | struct cgroup_iter *it); | 301 | struct cgroup_iter *it); |
294 | void cgroup_iter_end(struct cgroup *cont, struct cgroup_iter *it); | 302 | void cgroup_iter_end(struct cgroup *cont, struct cgroup_iter *it); |
295 | 303 | ||
296 | |||
297 | #else /* !CONFIG_CGROUPS */ | 304 | #else /* !CONFIG_CGROUPS */ |
298 | 305 | ||
299 | static inline int cgroup_init_early(void) { return 0; } | 306 | static inline int cgroup_init_early(void) { return 0; } |