From: Mathieu Desnoyers Date: Sun, 12 Aug 2012 18:29:40 +0000 (-0400) Subject: rcuja: add missing assign in recompact X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8eba1a4b587c09c34887f3964e5e77380b08c470;p=userspace-rcu.git rcuja: add missing assign in recompact Signed-off-by: Mathieu Desnoyers --- diff --git a/rcuja/rcuja.c b/rcuja/rcuja.c index e94031d..b164b96 100644 --- a/rcuja/rcuja.c +++ b/rcuja/rcuja.c @@ -512,6 +512,9 @@ int ja_node_recompact_add(struct rcu_ja_node_flag **old_node_flag, uint8_t n, /* add node */ ret = _ja_node_set_nth(new_node_flag, n, child_node_flag); assert(!ret); + /* Replace the old node with the new recompacted one */ + rcu_assign_pointer(*old_node_flag, new_node_flag); + /* TODO: free old_node (call_rcu) */ return 0; }