Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292682
b: refs/heads/master
c: ca464d6
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Mar 22, 2012
1 parent 4d4bbdd commit 4756011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 42aee6c495e07dba7410b863a360db6bb9ec6d66
refs/heads/master: ca464d69b19120a826aa2534de2511a6f542edf5
5 changes: 2 additions & 3 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5033,17 +5033,16 @@ css_get_next(struct cgroup_subsys *ss, int id,
return NULL;

BUG_ON(!ss->use_id);
WARN_ON_ONCE(!rcu_read_lock_held());

/* fill start point for scan */
tmpid = id;
while (1) {
/*
* scan next entry from bitmap(tree), tmpid is updated after
* idr_get_next().
*/
spin_lock(&ss->id_lock);
tmp = idr_get_next(&ss->idr, &tmpid);
spin_unlock(&ss->id_lock);

if (!tmp)
break;
if (tmp->depth >= depth && tmp->stack[depth] == rootid) {
Expand Down

0 comments on commit 4756011

Please sign in to comment.