Hugh Dickins 9f7de8275b idr: make idr_get_next() good for rcu_read_lock()
Make one small adjustment to idr_get_next(): take the height from the top
layer (stable under RCU) instead of from the root (unprotected by RCU), as
idr_find() does: so that it can be used with RCU locking.  Copied comment
on RCU locking from idr_find().

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-03-21 17:55:01 -07:00
..
2011-09-21 13:39:59 -07:00
2011-07-26 16:49:47 -07:00
2011-03-11 14:25:50 +00:00
2011-10-29 21:20:22 +02:00
2012-01-10 16:30:51 -08:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:54:56 -05:00
2011-09-20 23:24:44 -04:00
2011-11-28 21:12:42 +02:00
2012-02-07 14:32:24 -08:00
2011-07-25 20:57:15 -07:00
2011-08-06 18:32:45 -07:00
2011-11-04 17:47:34 -04:00
2011-03-31 11:26:23 -03:00
2012-01-31 23:19:47 +02:00
2011-12-08 19:52:43 -05:00
2011-03-31 11:26:23 -03:00