Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71417
b: refs/heads/master
c: 81a6a5c
h: refs/heads/master
i:
  71415: a090bba
v: v3
  • Loading branch information
Paul Menage authored and Linus Torvalds committed Oct 19, 2007
1 parent 7ab4445 commit bb57ec8
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 45 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 817929ec274bcfe771586d338bb31d1659615686
refs/heads/master: 81a6a5cdd2c5cd70874b88afe524ab09e9e869af
11 changes: 9 additions & 2 deletions trunk/include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ static inline void css_get(struct cgroup_subsys_state *css)
* css_get()
*/

extern void __css_put(struct cgroup_subsys_state *css);
static inline void css_put(struct cgroup_subsys_state *css)
{
if (!test_bit(CSS_ROOT, &css->flags))
atomic_dec(&css->refcnt);
__css_put(css);
}

struct cgroup {
Expand Down Expand Up @@ -112,6 +113,13 @@ struct cgroup {
* tasks in this cgroup. Protected by css_set_lock
*/
struct list_head css_sets;

/*
* Linked list running through all cgroups that can
* potentially be reaped by the release agent. Protected by
* release_list_lock
*/
struct list_head release_list;
};

/* A css_set is a structure holding pointers to a set of
Expand Down Expand Up @@ -293,7 +301,6 @@ struct task_struct *cgroup_iter_next(struct cgroup *cont,
struct cgroup_iter *it);
void cgroup_iter_end(struct cgroup *cont, struct cgroup_iter *it);


#else /* !CONFIG_CGROUPS */

static inline int cgroup_init_early(void) { return 0; }
Expand Down
Loading

0 comments on commit bb57ec8

Please sign in to comment.