Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281472
b: refs/heads/master
c: 29e2136
h: refs/heads/master
v: v3
  • Loading branch information
Mandeep Singh Baines authored and Tejun Heo committed Dec 19, 2011
1 parent 65524a5 commit ca3ecc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: 52dcf8a1f8ac09b6ea21266ebdc4db6d52eea1fc
refs/heads/master: 29e21368b9baf9c4b25060d65062da2dda926c70
10 changes: 2 additions & 8 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2025,23 +2025,17 @@ static bool css_set_check_fetched(struct cgroup *cgrp,

read_lock(&css_set_lock);
newcg = find_existing_css_set(cg, cgrp, template);
if (newcg)
get_css_set(newcg);
read_unlock(&css_set_lock);

/* doesn't exist at all? */
if (!newcg)
return false;
/* see if it's already in the list */
list_for_each_entry(cg_entry, newcg_list, links) {
if (cg_entry->cg == newcg) {
put_css_set(newcg);
list_for_each_entry(cg_entry, newcg_list, links)
if (cg_entry->cg == newcg)
return true;
}
}

/* not found */
put_css_set(newcg);
return false;
}

Expand Down

0 comments on commit ca3ecc5

Please sign in to comment.