projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'libnvdimm-for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdim...
[linux-2.6-microblaze.git]
/
Documentation
/
kernel-hacking
/
locking.rst
diff --git
a/Documentation/kernel-hacking/locking.rst
b/Documentation/kernel-hacking/locking.rst
index
94232ed
..
90bc3f5
100644
(file)
--- a/
Documentation/kernel-hacking/locking.rst
+++ b/
Documentation/kernel-hacking/locking.rst
@@
-94,16
+94,10
@@
primitives, but I'll pretend they don't exist.
Locking in the Linux Kernel
===========================
Locking in the Linux Kernel
===========================
-If I could give you one piece of advice: never sleep with anyone crazier
-than yourself. But if I had to give you advice on locking: **keep it
-simple**.
+If I could give you one piece of advice on locking: **keep it simple**.
Be reluctant to introduce new locks.
Be reluctant to introduce new locks.
-Strangely enough, this last one is the exact reverse of my advice when
-you **have** slept with someone crazier than yourself. And you should
-think about getting a big dog.
-
Two Main Types of Kernel Locks: Spinlocks and Mutexes
-----------------------------------------------------
Two Main Types of Kernel Locks: Spinlocks and Mutexes
-----------------------------------------------------