From 7b413155ff4babb1ce86ab0441242e39b43509fa Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 27 May 2013 23:58:39 -0400 Subject: [PATCH] Fix rcuja: fallback when adding element to full pool Signed-off-by: Mathieu Desnoyers --- rcuja/rcuja.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.34.1