[PATCH -mm 02/02] Redefine "lock" in Document futex PI design

From: Steven Rostedt
Date: Wed May 10 2006 - 09:36:08 EST



Try to explain the term lock better.

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

Index: linux-2.6.17-rc3-mm1/Documentation/rt-mutex-design.txt
===================================================================
--- linux-2.6.17-rc3-mm1.orig/Documentation/rt-mutex-design.txt 2006-05-10 09:21:41.000000000 -0400
+++ linux-2.6.17-rc3-mm1/Documentation/rt-mutex-design.txt 2006-05-10 09:21:55.000000000 -0400
@@ -84,9 +84,11 @@ mutex - In this document, to differen
PI and spin locks that are used in the PI code, from now on
the PI locks will be called a mutex.

-lock - In this document from now on, the term lock and spin lock will
- be synonymous. These are locks that are used for SMP as well
- as turning off preemption to protect areas of code on SMP machines.
+lock - In this document from now on, I will use the term lock when refering
+ to spin locks that are used to protect parts of the PI algorithm.
+ These locks disable preemption for UP (when CONFIG_PREEMPT is
+ enabled) and on SMP prevents multiple CPUs from entering critical
+ sections simultaneously.

spin lock - Same as lock above.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/