• Paul E. McKenney's avatar
    rcu: Make hotplug operations track GP state, not flags · ae2b217a
    Paul E. McKenney authored
    Currently, there are rcu_data structure fields named ->rcu_onl_gp_seq
    and ->rcu_ofl_gp_seq that track the rcu_state.gp_flags field at the
    time of the corresponding CPU's last online or offline operation,
    respectively.  However, this information is not particularly useful.
    It would be better to instead track the grace period state kept
    in rcu_state.gp_state.  This would also be consistent with the
    initialization in rcu_boot_init_percpu_data(), which is to RCU_GP_CLEANED
    (an rcu_state.gp_state value), and also with the diagnostics in
    rcu_implicit_dynticks_qs(), whose format is consistent with an integer,
    not a bitmask.
    
    This commit therefore makes this change and changes the names to
    ->rcu_onl_gp_flags and ->rcu_ofl_gp_flags, respectively.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
    ae2b217a
tree_plugin.h 41.3 KB