rcuja: add missing assign in recompact
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 12 Aug 2012 18:29:40 +0000 (14:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2013 14:19:47 +0000 (16:19 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rcuja/rcuja.c

index e94031d9737f27731a9051a2f74ca1de93f24ce7..b164b96a48ca5d19507c67b2df812769ede423ed 100644 (file)
@@ -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;
 }
 
This page took 0.02568 seconds and 4 git commands to generate.