From: Hugh Dickins Date: Wed, 21 Mar 2012 23:34:20 +0000 (-0700) Subject: idr: make idr_get_next() good for rcu_read_lock() X-Git-Tag: v3.4-rc1~158^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f7de8275b46d9d11b1505adbfe6c2bb48df4741;p=pandora-kernel.git 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 Acked-by: KAMEZAWA Hiroyuki Acked-by: Li Zefan Cc: Eric Dumazet Acked-by: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed