From 8c148baf9490fb4da1c9fbd0c181c924b7662447 Mon Sep 17 00:00:00 2001 From: "Paul E. McKenney" Date: Tue, 10 Mar 2009 12:55:52 -0700 Subject: [PATCH] --- yaml --- r: 132175 b: refs/heads/master c: 1b23336ad98b3666c216617227c7767cd60a22be h: refs/heads/master i: 132173: 70b4a6749c170e6757ca9475e132891e497a5931 132171: b035c6a2891e0bf10358f15e054f764567f903eb 132167: 4a3abc6160822dfa5ca5f63c3b4d21e31f20f191 132159: 09f476f3fe97236259c49861ce48c60808ad9b60 v: v3 --- [refs] | 2 +- trunk/lib/idr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 509ab1176529..c720bbda044f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 260219cc48cfb22486e5d0d706c978228a080d63 +refs/heads/master: 1b23336ad98b3666c216617227c7767cd60a22be diff --git a/trunk/lib/idr.c b/trunk/lib/idr.c index c11c5765cdef..dab4bca86f5d 100644 --- a/trunk/lib/idr.c +++ b/trunk/lib/idr.c @@ -449,6 +449,7 @@ void idr_remove_all(struct idr *idp) n = idp->layers * IDR_BITS; p = idp->top; + rcu_assign_pointer(idp->top, NULL); max = 1 << n; id = 0; @@ -467,7 +468,6 @@ void idr_remove_all(struct idr *idp) p = *--paa; } } - rcu_assign_pointer(idp->top, NULL); idp->layers = 0; } EXPORT_SYMBOL(idr_remove_all);