Thread (21 messages) 21 messages, 4 authors, 17h ago

Re: [PATCH v1 04/11] rcu/segcblist: Track segment grace periods with struct rcu_gp_seq

From: Frederic Weisbecker <frederic@kernel.org>
Date: 2026-07-09 13:33:22
Also in: lkml, rcu

Le Wed, Jun 24, 2026 at 06:23:46AM -0700, Puranjay Mohan a écrit :
Change the type of the per-segment ->gp_seq[] array in struct
rcu_segcblist from unsigned long to struct rcu_gp_seq.  This prepares the
callback tracking infrastructure to record both normal and expedited
grace periods per segment.

The rcu_segcblist_nextgp(), rcu_segcblist_advance(), and
rcu_segcblist_accelerate() helpers now take a struct rcu_gp_seq * instead
of an unsigned long, and all callers use the .norm field for comparisons
and assignments.  The SRCU and Tasks RCU wrappers construct a struct
rcu_gp_seq with only .norm set and forward to the core helpers.

No functional change: only the .norm field is used.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>

-- 
Frederic Weisbecker
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help