diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-07-15 06:06:40 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-08-13 14:38:24 -0700 |
commit | 296181d78df9892e08e794f2a9a4d2c38f9acedb (patch) | |
tree | ebec54a8019bec324e60c76ac6980f80d4823f0f /kernel/rcu/tree_exp.h | |
parent | 1d5a81c18dc68fc38a52e8dab1992a043a358927 (diff) | |
download | linux-296181d78df9892e08e794f2a9a4d2c38f9acedb.tar.bz2 |
rcu/nocb: Reduce __call_rcu_nocb_wake() leaf rcu_node ->lock contention
Currently, __call_rcu_nocb_wake() advances callbacks each time that it
detects excessive numbers of callbacks, though only if it succeeds in
conditionally acquiring its leaf rcu_node structure's ->lock. Despite
the conditional acquisition of ->lock, this does increase contention.
This commit therefore avoids advancing callbacks unless there are
callbacks in ->cblist whose grace period has completed and advancing
has not yet been done during this jiffy.
Note that this decision does not take the presence of new callbacks
into account. That is because on this code path, there will always be
at least one new callback, namely the one we just enqueued.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu/tree_exp.h')
0 files changed, 0 insertions, 0 deletions