Skip to content

Commit

Permalink
rcu/sync: Use call_rcu_hurry() instead of call_rcu
Browse files Browse the repository at this point in the history
call_rcu() changes to save power will slow down rcu sync. Use the
call_rcu_hurry() API instead which reverts to the old behavior.

[ paulmck: Apply s/call_rcu_flush/call_rcu_hurry/ feedback from Tejun Heo. ]

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
  • Loading branch information
Joel Fernandes (Google) authored and Paul E. McKenney committed Nov 29, 2022
1 parent 084e04f commit 7651d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcu/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void rcu_sync_func(struct rcu_head *rhp);

static void rcu_sync_call(struct rcu_sync *rsp)
{
call_rcu(&rsp->cb_head, rcu_sync_func);
call_rcu_hurry(&rsp->cb_head, rcu_sync_func);
}

/**
Expand Down

0 comments on commit 7651d6b

Please sign in to comment.