srcu: Make Tiny SRCU able to operate in preemptible kernels
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 17 Jun 2024 15:43:02 +0000 (08:43 -0700)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:11:58 +0000 (07:11 -0800)
commitda2ac5623716cc3f32eeeafef9b7c08c73c2b20a
tree67c718da87a5808f6823e1279b888cfd512d6805
parent2014c95afecee3e76ca4a56956a936e23283f05b
srcu: Make Tiny SRCU able to operate in preemptible kernels

Given that SRCU allows its read-side critical sections are not just
preemptible, but also allow general blocking, there is not much
reason to restrict Tiny SRCU to non-preemptible kernels.  This commit
therefore removes Tiny SRCU dependencies on non-preemptibility, primarily
surrounding its interaction with rcutorture and early boot.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Ankur Arora <ankur.a.arora@oracle.com>
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>
kernel/rcu/rcu.h
kernel/rcu/srcutiny.c