srcu: Pull ->srcu_{un,}lock_count into a new srcu_ctr structure
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 19 Dec 2024 19:13:51 +0000 (11:13 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:12:05 +0000 (07:12 -0800)
commit56eb8be144c2bdb3a96a0d4365777fc64c65c5d4
tree37583325a34c381b89812ea6a9f0c153e9026fc6
parent5f9e1bc50a046578ddbfb05cda0f053d856bef98
srcu: Pull ->srcu_{un,}lock_count into a new srcu_ctr structure

This commit prepares for array-index-free srcu_read_lock*() by moving the
->srcu_{un,}lock_count fields into a new srcu_ctr structure.  This will
permit ->srcu_index to be replaced by a per-CPU pointer to this structure.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: <bpf@vger.kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
include/linux/srcutree.h
kernel/rcu/srcutree.c