rculist: ensure atomic updates of next pointers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Jun 2013 16:51:13 +0000 (12:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Jun 2013 17:46:50 +0000 (13:46 -0400)
commitdb757a4e5c7ecba45a79dc9c15090cb3deb659b5
tree4f3ab8d4262be22647ed7434981d2e2e631e5d81
parente2fcb2d325f216c558beca525ac25e4e42115dbb
rculist: ensure atomic updates of next pointers

in cds_list_add_rcu, use rcu_assign_pointer to update head->next
atomically and provide the memory barrier before publishing head->next.
Notice that we don't need the wmb() prior to store to prev, because RCU
traversals only go forward, and thus only use "next".

in cds_list_del_rcu, use CMM_STORE_SHARED() to store to elem->prev->next
atomically.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculist.h
This page took 0.026075 seconds and 4 git commands to generate.