Add _STORE_SHARED to set_parent
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 30 May 2011 03:16:51 +0000 (23:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 30 May 2011 03:16:51 +0000 (23:16 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-rbtree.c

index 454591ab02dc2311c59e3e447cdce0c1f1d909fa..f4fc6984c029da0d03b24b135f708e773244249c 100644 (file)
@@ -88,7 +88,7 @@ void set_parent(struct rcu_rbtree_node *node,
                struct rcu_rbtree_node *parent,
                unsigned int pos)
 {
-       node->parent = ((unsigned long) parent) | pos;
+       _CMM_STORE_SHARED(node->parent, ((unsigned long) parent) | pos);
 }
 
 static
This page took 0.026209 seconds and 4 git commands to generate.