From: Mathieu Desnoyers Date: Tue, 28 May 2013 03:58:39 +0000 (-0400) Subject: Fix rcuja: fallback when adding element to full pool X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7b413155ff4babb1ce86ab0441242e39b43509fa;p=userspace-rcu.git Fix rcuja: fallback when adding element to full pool Signed-off-by: Mathieu Desnoyers --- diff --git a/rcuja/rcuja.c b/rcuja/rcuja.c index 9c90fdc..fac1eb7 100644 --- a/rcuja/rcuja.c +++ b/rcuja/rcuja.c @@ -835,6 +835,9 @@ skip_copy: ret = _ja_node_set_nth(new_type, new_node, new_shadow_node, n, child_node_flag); + if (new_type->type_class == RCU_JA_POOL && ret) { + goto fallback_toosmall; + } assert(!ret); } /* Return pointer to new recompacted node through old_node_flag_ptr */