From: Katerina Kubecova Date: Wed, 12 Mar 2025 16:07:42 +0000 (+0100) Subject: fixup! fixup! rt-attr.c: make ea class usecount atomic X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d978c21d9cee194d5ac66425e19c40cbf581ff8;p=thirdparty%2Fbird.git fixup! fixup! rt-attr.c: make ea class usecount atomic --- diff --git a/nest/rt-attr.c b/nest/rt-attr.c index c12037c90..33ef22802 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -1886,7 +1886,7 @@ ea_storage_free(struct ea_storage *r) int count = atomic_fetch_sub_explicit(&rta_hash_table.count, 1, memory_order_relaxed); u64 order = atomic_load_explicit(&cur->order, memory_order_relaxed); - if (count < 1 << (order - 1) && order > 5)//28) + if (count < 1 << (order - 1) && order > 28) ev_send(rta_hash_table.ev_list, &rta_hash_table.rehash_event); /* Schedule actual free of the storage */ @@ -1990,7 +1990,7 @@ ea_rehash(void * u UNUSED) while (count > 1 << (next_order + 1)) next_order++; - while (count < 1 << (next_order - 1) && next_order > 5)//28) + while (count < 1 << (next_order - 1) && next_order > 28) next_order--; //log("rehash");