diff options
author | Paul E. McKenney <[email protected]> | 2018-05-01 10:26:57 -0700 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2018-07-12 15:37:48 -0700 |
commit | 7a1d0f23ad70cd4813bf4b72735ea2c26a4f53fe (patch) | |
tree | 83c5e674a73d05ebc38687b9754d1509366e29b5 /scripts/gdb/linux/utils.py | |
parent | aebc82644b2c8eafa15e8c481fbafc1b41f4fbf9 (diff) |
rcu: Move from ->need_future_gp[] to ->gp_seq_needed
One problem with the ->need_future_gp[] array is that the grace-period
assignment of each element changes as the grace periods complete.
This means that it is necessary to hold a lock when checking this
array to learn if a given grace period has already been requested.
This increase lock contention, which is the opposite of helpful.
This commit therefore replaces the ->need_future_gp[] with a single
->gp_seq_needed value and keeps it updated in the rcu_data structure.
This will enable reliable lockless checking of whether or not a given
grace period has already been requested.
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions