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 branch 'work.gfs2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[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
ed1284c
..
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
-----------------------------------------------------
@@
-1406,7
+1400,7
@@
bh
half will be running at any time.
Hardware Interrupt / Hardware IRQ
half will be running at any time.
Hardware Interrupt / Hardware IRQ
- Hardware interrupt request. in_irq() returns true in a
+ Hardware interrupt request. in_
hard
irq() returns true in a
hardware interrupt handler.
Interrupt Context
hardware interrupt handler.
Interrupt Context
@@
-1418,7
+1412,7
@@
SMP
(``CONFIG_SMP=y``).
Software Interrupt / softirq
(``CONFIG_SMP=y``).
Software Interrupt / softirq
- Software interrupt handler. in_irq() returns false;
+ Software interrupt handler. in_
hard
irq() returns false;
in_softirq() returns true. Tasklets and softirqs both
fall into the category of 'software interrupts'.
in_softirq() returns true. Tasklets and softirqs both
fall into the category of 'software interrupts'.