Skip to content

Commit 0d2be10

Browse files
ahalaneyJonathan Corbet
authored andcommitted
Documentation/locking/locktypes: Fix PREEMPT_RT _bh() description
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>
1 parent 247097e commit 0d2be10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/locking/locktypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ based on rt_mutex which changes the semantics:
247247
Non-PREEMPT_RT kernels disable preemption to get this effect.
248248

249249
PREEMPT_RT kernels use a per-CPU lock for serialization which keeps
250-
preemption disabled. The lock disables softirq handlers and also
250+
preemption enabled. The lock disables softirq handlers and also
251251
prevents reentrancy due to task preemption.
252252

253253
PREEMPT_RT kernels preserve all other spinlock_t semantics:

0 commit comments

Comments
 (0)