Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200595
b: refs/heads/master
c: 94bfa3b
h: refs/heads/master
i:
  200593: 1e95247
  200591: fcd9636
v: v3
  • Loading branch information
Paul E. McKenney committed Jun 23, 2010
1 parent 88d013b commit 304d0be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f3b577dec1f2ce32d2db6d2ca6badff7002512af
refs/heads/master: 94bfa3b6692c7a3f6f119596724204ec975d3ef0
4 changes: 2 additions & 2 deletions trunk/lib/idr.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,15 +602,15 @@ void *idr_get_next(struct idr *idp, int *nextidp)
/* find first ent */
n = idp->layers * IDR_BITS;
max = 1 << n;
p = rcu_dereference(idp->top);
p = rcu_dereference_raw(idp->top);
if (!p)
return NULL;

while (id < max) {
while (n > 0 && p) {
n -= IDR_BITS;
*paa++ = p;
p = rcu_dereference(p->ary[(id >> n) & IDR_MASK]);
p = rcu_dereference_raw(p->ary[(id >> n) & IDR_MASK]);
}

if (p) {
Expand Down

0 comments on commit 304d0be

Please sign in to comment.