On Monday 10 September 2012 16:27, Or Gerlitz wrote: > I took a look on the practice/wrapping used over the mm subsystem for > radix_tree_lookup calls, whose maintainer, > Andrew Morton is signed on the patch Roland pointed to, its just > rcu_read_lock/unlock, seems this is what to do as well. > In addition, need to do a synchronize_rcu when deleting, per the comment in include/linux/rcupdate.h:
* It is still required that the caller manage the synchronization and lifetimes * of the items. So if RCU lock-free lookups are used, typically this would mean * that the items have their own locks, or are amenable to lock-free access; and * that the items are freed by RCU (or only freed after having been deleted from * the radix tree *and* a synchronize_rcu() grace period). -Jack -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html