@@ -305,7 +305,7 @@ void radix_tree_node_rcu_free(struct rcu_head *head)
static inline void
radix_tree_node_free(struct radix_tree_node *node)
{
- call_rcu(&node->rcu_head, radix_tree_node_rcu_free);
+ call_rcu_lazy(&node->rcu_head, radix_tree_node_rcu_free);
}
/*
@@ -255,7 +255,7 @@ static void xa_node_free(struct xa_node *node)
{
XA_NODE_BUG_ON(node, !list_empty(&node->private_list));
node->array = XA_RCU_FREE;
- call_rcu(&node->rcu_head, radix_tree_node_rcu_free);
+ call_rcu_lazy(&node->rcu_head, radix_tree_node_rcu_free);
}
/*
Move radix-tree and xarray to call_rcu_lazy(). This is required to prevent callbacks triggering RCU machinery too quickly and too often, which adds more power to the system. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> --- lib/radix-tree.c | 2 +- lib/xarray.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)