summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2022-08-24 15:39:09 -0700
committerPaul E. McKenney <paulmck@kernel.org>2022-08-31 05:09:22 -0700
commit18538248e5486b0f0e8581083de275176674cd1f (patch)
tree27b84bd426ad7f28468b817b3d48d6e2093197d3 /kernel
parent5d7801f20170a50252b791c2ce05fb982616665b (diff)
downloadlinux-18538248e5486b0f0e8581083de275176674cd1f.tar.bz2
rcu: Add functions to compare grace-period state values
This commit adds same_state_synchronize_rcu() and same_state_synchronize_rcu_full() functions to compare grace-period state values, for example, those obtained from get_state_synchronize_rcu() and get_state_synchronize_rcu_full(). These functions allow small structures to omit these state values by placing them in list headers for lists containing structures with the same token value. Presumably the per-structure list pointers are the same ones used to link the structures into whatever reader-accessible data structure was used. This commit also adds both NUM_ACTIVE_RCU_POLL_OLDSTATE and NUM_ACTIVE_RCU_POLL_FULL_OLDSTATE, which define the maximum number of distinct unsigned long values and rcu_gp_oldstate values, respectively, corresponding to not-yet-completed grace periods. These values can be used to size arrays of the list headers described above. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions