|
@@ -323,11 +323,8 @@ static void tree_nodes_free(struct rb_root *root,
|
|
|
while (gc_count) {
|
|
|
rbconn = gc_nodes[--gc_count];
|
|
|
spin_lock(&rbconn->list.list_lock);
|
|
|
- if (rbconn->list.count == 0 && rbconn->list.dead == false) {
|
|
|
- rbconn->list.dead = true;
|
|
|
- rb_erase(&rbconn->node, root);
|
|
|
- call_rcu(&rbconn->rcu_head, __tree_nodes_free);
|
|
|
- }
|
|
|
+ rb_erase(&rbconn->node, root);
|
|
|
+ call_rcu(&rbconn->rcu_head, __tree_nodes_free);
|
|
|
spin_unlock(&rbconn->list.list_lock);
|
|
|
}
|
|
|
}
|