Skip to contentSkip to conversation

kernel locking guide fix.

PATCH New Rusty Russell 1 participant 1 message May 2, 2001 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel locking guide fix.

Documentation/DocBook/kernel-locking.tmpl +5 -2
diff -urN -I \$.*\$ -X /tmp/kerndiff.hKrYxB --minimal linux-2.4.4-official/Documentation/DocBook/kernel-locking.tmpl working-2.4.4-rcu/Documentation/DocBook/kernel-locking.tmpl
@@ -760,8 +760,11 @@
     </para>
 
     <para>
-      Any atomic operation is defined to act as a memory barrier
-      (ie. as per the <function>mb()</function> macro).  Also,
+      Some atomic operations are defined to act as a memory barrier
+      (ie. as per the <function>mb()</function> macro, but if in
+      doubt, be explicit.
+      <!-- Rusty Russell 2 May 2001, 2.4.4 -->
+      Also,
       spinlock operations act as partial barriers: operations after
       gaining a spinlock will never be moved to precede the
       <function>spin_lock()</function> call, and operations before

--
Premature optmztion is rt of all evl. --DK