• Paul E. McKenney's avatar
    rcu: Move from ->need_future_gp[] to ->gp_seq_needed · 7a1d0f23
    Paul E. McKenney authored
    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: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    7a1d0f23
tree.h 19.6 KB