idr: make idr_remove rcu-safe
Introduce the free_layer() routine: it is the one that actually frees memory after a grace period has elapsed. Signed-off-by: NNadia Derbey <Nadia.Derbey@bull.net> Reviewed-by: N"Paul E. McKenney" <paulmck@us.ibm.com> Cc: Manfred Spraul <manfred@colorfullife.com> Cc: Jim Houston <jim.houston@comcast.net> Cc: Pierre Peiffer <peifferp@gmail.com> Acked-by: NRik van Riel <riel@redhat.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录