Re: [PATCH] list.h: add list_for_each_entry_continue_rcu

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Berg <johannes@...>
Cc: linux-kernel <linux-kernel@...>, Herbert Xu <herbert@...>, Randy Dunlap <randy.dunlap@...>, Pavel Emelianov <xemul@...>, Zach Brown <zach.brown@...>, Dave Jones <davej@...>, Oleg Nesterov <oleg@...>
Date: Friday, September 7, 2007 - 11:34 am

On Fri, Sep 07, 2007 at 04:34:48PM +0200, Johannes Berg wrote:

Please add something like the following to this comment:

	Note that the caller is responsible for making sure that
	the element remains in place between the earlier iterator
	and this one.  One way to do this is to ensure that
	both iterators are covered by the same rcu_read_lock(),
	while others involve reference counts, flags, or mutexes.

						Thanx, Paul

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] list.h: add list_for_each_entry_continue_rcu, Johannes Berg, (Fri Sep 7, 10:34 am)
Re: [PATCH] list.h: add list_for_each_entry_continue_rcu, Paul E. McKenney, (Fri Sep 7, 11:34 am)
Re: [PATCH] list.h: add list_for_each_entry_continue_rcu, Paul E. McKenney, (Fri Sep 7, 3:57 pm)