Documentation/locking/locktypes: Fix PREEMPT_RT _bh() description
authorAndrew Halaney <ahalaney@redhat.com>
Thu, 24 Feb 2022 21:23:12 +0000 (15:23 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 4 Mar 2022 17:13:19 +0000 (10:13 -0700)
With PREEMPT_RT the _bh() version of a spinlock leaves preemption
enabled, align the doc to say that instead of the opposite.

Reported-by: Leah Leshchinsky <lleshchi@redhat.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20220224212312.2601153-1-ahalaney@redhat.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/locking/locktypes.rst

index 4fd7b70..bfa75ea 100644 (file)
@@ -247,7 +247,7 @@ based on rt_mutex which changes the semantics:
    Non-PREEMPT_RT kernels disable preemption to get this effect.
 
    PREEMPT_RT kernels use a per-CPU lock for serialization which keeps
-   preemption disabled. The lock disables softirq handlers and also
+   preemption enabled. The lock disables softirq handlers and also
    prevents reentrancy due to task preemption.
 
 PREEMPT_RT kernels preserve all other spinlock_t semantics: