Re: [PATCH 2/2] rculist.h: use the rcu API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Thursday, May 15, 2008 - 7:48 am

On Thu, May 15, 2008 at 09:50:11AM +0400, Alexey Dobriyan wrote:

Strangely enough, you actually can do this, because RCU readers are
not permitted to follow the prev pointers.  Any RCU readers who try to
follow the prev pointers are subject to failures due to list_del_rcu()'s
assignment:

	entry->prev = LIST_POISON2;

So this change is not in fact relying on undocumented rcu_assign_pointer()
side effects.

							Thanx, Paul

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

Messages in current thread:
[PATCH 2/2] rculist.h: use the rcu API, Franck Bui-Huu, (Wed May 14, 2:26 pm)
Re: [PATCH 2/2] rculist.h: use the rcu API, Alexey Dobriyan, (Wed May 14, 10:50 pm)
Re: [PATCH 2/2] rculist.h: use the rcu API, Paul E. McKenney, (Thu May 15, 7:48 am)