summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay@kernel.org>2026-06-24 06:23:47 -0700
committerPaul E. McKenney <paulmck@kernel.org>2026-07-23 10:46:09 -0700
commit60b54875bd0ba87a7d39204e0cd494a29d22e72f (patch)
treed078e2b2d7575a05164c5d2ee0fdf5784a60b43f /scripts
parentfb5c815f12b5c17ed6c8c5879b3acb1407e5bac4 (diff)
downloadlinux-60b54875bd0ba87a7d39204e0cd494a29d22e72f.tar.gz
linux-60b54875bd0ba87a7d39204e0cd494a29d22e72f.zip
rcu: Add RCU_GET_STATE_NOT_TRACKED for subsystems without expedited GPs
SRCU and Tasks RCU do not track expedited grace periods. When their callback state is checked via poll_state_synchronize_rcu_full(), the uninitialized or zeroed exp field could cause false-positive completion detection. This commit adds an RCU_GET_STATE_NOT_TRACKED sentinel value (0x2) that these subsystems can place into exp to indicate that expedited GP tracking is not applicable. The expedited sequence check in poll_state_synchronize_rcu_full() is guarded to skip entries marked with this sentinel. This is needed to allow rcu_segcblist_advance() and rcu_accelerate_cbs() to work with both normal and expedited grace periods via get_state_synchronize_rcu_full() and poll_state_synchronize_rcu_full(). Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Puranjay Mohan <puranjay@kernel.org> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions