rcuhlist: make pointer stores atomic
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Jun 2013 21:29:42 +0000 (17:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Jun 2013 21:29:42 +0000 (17:29 -0400)
commit90bdf188e835cadbc12d5fa7e4523056ecd97cf4
tree924474e587260db2cc8b9baade9a91bd003880b3
parent6734fec18ba760c816a32750cbb851414ef899e4
rcuhlist: make pointer stores atomic

Use rcu_assign_pointer() to store into head->next in
cds_hlist_add_head_rcu(). This includes the write barrier needed before
publishing the new node.

Use CMM_STORE_SHARED() to store into elem->prev->next in
cds_hlist_del_rcu().

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