]> www.infradead.org Git - users/jedix/linux-maple.git/commit
srcu: Bit manipulation changes for additional reader flavor
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 15 Oct 2024 16:11:01 +0000 (09:11 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 12 Nov 2024 14:42:20 +0000 (15:42 +0100)
commitc2f9467c77941cae5a41aa10c06ff0d5b00f69f9
treed102f0e4270a7a9ad4c63f356e33ebbd9309b1fc
parent365f34483be33a9d0151c06ac39627d7927210d9
srcu: Bit manipulation changes for additional reader flavor

Currently, there are only two flavors of readers, normal and NMI-safe.
Very straightforward state updates suffice to check for erroneous
mixing of reader flavors on a given srcu_struct structure.  This commit
upgrades the checking in preparation for the addition of light-weight
(as in memory-barrier-free) readers.

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>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/srcutree.c