]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
fixup! fixup: rt-attr.c: (hopefully) solved deadlock in rehash. The solution for...
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 11 Mar 2025 16:10:18 +0000 (17:10 +0100)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 11 Mar 2025 16:10:18 +0000 (17:10 +0100)
nest/rt-attr.c

index a6a97f2d8d6359b9ad867e48d968b0cff679de95..4a44fe082352be905a0527601c49a4e66f625768 100644 (file)
@@ -1873,7 +1873,7 @@ ea_storage_free(struct ea_storage *r)
 
     rcu_read_unlock();
 
-    if ((cur_success || next_success) && !next_to_free)
+    if ((cur_success || next_success) && r != next_to_free)
     {
       /* Consider if rehash is needed */
       int count = atomic_fetch_sub_explicit(&rta_hash_table.count, 1, memory_order_relaxed);