Re: [patch V2 08/15] Documentation: Add lock ordering and nesting documentation

From
Thomas Gleixner <hidden>
Date
2020-03-19 18:05:19
Also in
linux-pci, linux-wireless, linuxppc-dev, lkml, netdev
Reply to
Jonathan Corbet, 2020-03-19
Jonathan Corbet [off-list ref] writes:
On Wed, 18 Mar 2020 21:43:10 +0100
Thomas Gleixner [off-list ref] wrote:
quoted
Add initial documentation.
...time to add a a couple of nits...:)
...time

Is that valid RST?
quoted
+++ b/Documentation/locking/locktypes.rst
@@ -0,0 +1,298 @@
+.. _kernel_hacking_locktypes:
+
So ... I vaguely remember that some Thomas guy added a document saying we
should be putting SPDX tags on our files? :)
Never met him or heard about that.
quoted
+
+The preferred solution is to use :c:func:`spin_lock_irq()` or
+:c:func:`spin_lock_irqsave()` and their unlock counterparts.
We don't need (and shouldn't use) :c:func: anymore; just saying
spin_lock_irq() will cause the Right Things to happen.
Good to know. Will fix.

Thanks,

        tglx
Thread (72 messages) 72 messages, 17 authors, last reply 2020-03-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help