diff options
| author | Paul E. McKenney <[email protected]> | 2019-07-15 08:09:04 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2019-08-13 21:38:24 +0000 |
| commit | 1d5a81c18dc68fc38a52e8dab1992a043a358927 (patch) | |
| tree | 348ced2b4230c636b203b7213bf6b7a12226d4b9 /tools/perf/scripts/python/compaction-times.py | |
| parent | rcu/nocb: Advance CBs after merge in rcutree_migrate_callbacks() (diff) | |
| download | kernel-1d5a81c18dc68fc38a52e8dab1992a043a358927.tar.gz kernel-1d5a81c18dc68fc38a52e8dab1992a043a358927.zip | |
rcu/nocb: Reduce nocb_cb_wait() leaf rcu_node ->lock contention
Currently, nocb_cb_wait() advances callbacks on each pass through its
loop, 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.
Note that nocb_cb_wait() doesn't worry about callbacks that have not
yet been assigned a grace period. The idea is that the only reason for
nocb_cb_wait() to advance callbacks is to allow it to continue invoking
callbacks. Time will tell whether this is the correct choice.
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
