From: Mathieu Desnoyers Date: Tue, 9 Mar 2010 14:46:53 +0000 (-0500) Subject: Use _STORE_SHARED to update redirections X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9a9703e60a2c2490302235db26f3f60ac0891758;p=urcu.git Use _STORE_SHARED to update redirections Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-rbtree.c b/urcu-rbtree.c index e1df343..25ba43f 100644 --- a/urcu-rbtree.c +++ b/urcu-rbtree.c @@ -198,8 +198,8 @@ static struct rcu_rbtree_node *left_rotate(struct rcu_rbtree_node **root, /* * redirect old nodes to new. */ - x->redir = xc; - y->redir = yc; + _STORE_SHARED(x->redir, xc); + _STORE_SHARED(y->redir, yc); /* * Ensure that redirections are visible before updating external @@ -296,8 +296,8 @@ static struct rcu_rbtree_node *right_rotate(struct rcu_rbtree_node **root, /* * redirect old nodes to new. */ - x->redir = xc; - y->redir = yc; + _STORE_SHARED(x->redir, xc); + _STORE_SHARED(y->redir, yc); /* * Ensure that redirections are visible before updating external @@ -477,7 +477,7 @@ rcu_rbtree_transplant(struct rcu_rbtree_node **root, /* * redirect old node to new. */ - v->redir = vc; + _STORE_SHARED(v->redir, vc); /* * Ensure that redirections are visible before updating external @@ -624,8 +624,8 @@ rcu_rbtree_remove_nonil(struct rcu_rbtree_node **root, * redirect old nodes to new. */ if (x != &rcu_rbtree_nil) - x->redir = xc; - y->redir = yc; + _STORE_SHARED(x->redir, xc); + _STORE_SHARED(y->redir, yc); /* * Ensure that redirections are visible before updating external