Skip to contentSkip to conversation

Documentation: Fix duplicate statement about raw_spinlock_t type

PATCH In review Guilherme G. Piccoli 2 participants 3 messages Mar 21, 2022 – Mar 25, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: Fix duplicate statement about raw_spinlock_t type

Unless it was duplicate on purpose, to emphasize that a raw_spinlock_t is always a spinning lock regardless of PREEMPT_RT or kernel config, it's a bit odd that this text is duplicate. So, this patch just clean it up, keeping the consistency with the other sections of the text.

Cc Thomas Gleixner <[email protected]>
Fixes 919e9e6395cf ("Documentation: Add lock ordering and nesting documentation")
---
 Documentation/locking/locktypes.rst | 3 ---
 1 file changed, 3 deletions(-)
Documentation/locking/locktypes.rst +0 -3
index bfa75ea1b66a..9933faad4771 100644
@@ -211,9 +211,6 @@ raw_spinlock_t and spinlock_t
 raw_spinlock_t
 --------------
 
-raw_spinlock_t is a strict spinning lock implementation regardless of the
-kernel configuration including PREEMPT_RT enabled kernels.
-
 raw_spinlock_t is a strict spinning lock implementation in all kernels,
 including PREEMPT_RT kernels.  Use raw_spinlock_t only in real critical
 core code, low-level interrupt handling and places where disabling
Signature · 1 line
2.35.1
maintainer
#1 lore raw
Quoted 17 lines · Guilherme G. Piccoli

Unless it was duplicate on purpose, to emphasize that a raw_spinlock_t is always a spinning lock regardless of PREEMPT_RT or kernel config, it's a bit odd that this text is duplicate. So, this patch just clean it up, keeping the consistency with the other sections of the text.

Cc Thomas Gleixner <[email protected]>
Fixes 919e9e6395cf ("Documentation: Add lock ordering and nesting documentation")
---
 Documentation/locking/locktypes.rst | 3 ---
 1 file changed, 3 deletions(-)
Documentation/locking/locktypes.rst +0 -0
index bfa75ea1b66a..9933faad4771 100644

Documentation/locking/locktypes.rst raw_spinlock_t and spinlock_t · line 216

Quoted 9 lines
Documentation/locking/locktypes.rst +0 -3
@@ -211,9 +211,6 @@ raw_spinlock_t and spinlock_t
 raw_spinlock_t
 --------------
 
-raw_spinlock_t is a strict spinning lock implementation regardless of the
-kernel configuration including PREEMPT_RT enabled kernels.
-
 raw_spinlock_t is a strict spinning lock implementation in all kernels,
 including PREEMPT_RT kernels.  Use raw_spinlock_t only in real critical
 core code, low-level interrupt handling and places where disabling

I don't think that was intentional. Applied, thanks.

For future reference, a far better changelog would have been something like:

Remove the duplicated sentence from locktypes.rst

Thanks,

jon

#2 lore raw
Quoted 10 lines · Jonathan Corbet

"Guilherme G. Piccoli" <[email protected]> writes:
[...]
For future reference, a far better changelog would have been something like:

Remove the duplicated sentence from locktypes.rst

Thanks,

jon

Thanks Jon, and feel free to change that when applying in case you prefer, it's a good choice of words, better than mine. Cheers,

Guilherme