]> git.ipfire.org Git - thirdparty/linux.git/commit
doc: Make whatisRCU.rst note that spinlocks are RCU readers
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Nov 2023 23:06:46 +0000 (15:06 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 14 Feb 2024 15:53:49 +0000 (07:53 -0800)
commit8dbc33b4d1a19ff43930dc983c457946241078e8
tree60b585da1e2ce8d58475921516c244019525c6ee
parent120311acb01d7360dcc70c0862c83758fbcd28d2
doc: Make whatisRCU.rst note that spinlocks are RCU readers

In kernels built with CONFIG_PREEMPT_RT=n, spinlock critical sections
are RCU readers because they disable preemption.  However, they are also
RCU readers in CONFIG_PREEMPT_RT=y because in that case the locking
primitives contain rcu_read_lock() and rcu_read_unlock().  Therefore,
upgrade whatisRCU.rst to document this non-obvious case.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Documentation/RCU/whatisRCU.rst