netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH resent] Documentation: rw_lock lessons learned
@ 2009-11-10 19:55 William Allen Simpson
  2009-11-10 21:22 ` Paul E. McKenney
  2009-11-11  2:06 ` Stephen Hemminger
  0 siblings, 2 replies; 15+ messages in thread
From: William Allen Simpson @ 2009-11-10 19:55 UTC (permalink / raw)
  To: Linux Kernel Developers, Linux Kernel Network Developers
  Cc: Eric Dumazet, Paul E. McKenney

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

In recent weeks, two different network projects erroneously
strayed down the rw_lock path.  Update the Documentation
based upon comments in those threads.

Signed-off-by: William.Allen.Simpson@gmail.com
---
   Documentation/spinlocks.txt |   14 ++++++++++++++
   1 files changed, 14 insertions(+), 0 deletions(-)


[-- Attachment #2: spinlocks.txt.patch --]
[-- Type: text/plain, Size: 639 bytes --]

diff --git a/Documentation/spinlocks.txt b/Documentation/spinlocks.txt
index 619699d..c112052 100644
--- a/Documentation/spinlocks.txt
+++ b/Documentation/spinlocks.txt
@@ -233,4 +233,18 @@ indeed), while write-locks need to protect themselves against interrupts.
 
 		Linus
 
+----
+
+The implications of spin_locks on memory are further described in:
+
+  Documentation/memory-barriers.txt
+    (5) LOCK operations.
+    (6) UNLOCK operations.
+
+----
+
+We are working hard to remove reader-writer spinlocks (rw_lock) from the
+network stack, so please don't add a new one.  Instead, see:
+
+  Documentation/RCU/rcu.txt
 
-- 
1.6.3.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-12-12 10:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 19:55 [PATCH resent] Documentation: rw_lock lessons learned William Allen Simpson
2009-11-10 21:22 ` Paul E. McKenney
2009-11-11  2:06 ` Stephen Hemminger
2009-11-11 17:08   ` William Allen Simpson
2009-11-11 17:37     ` Stephen Hemminger
2009-11-12 11:06       ` [PATCH v2] " William Allen Simpson
2009-11-12 15:40         ` Linus Torvalds
2009-11-12 17:04         ` Stephen Hemminger
2009-11-12 19:13         ` Stephen Clark
2009-11-12 23:00           ` Stephen Hemminger
2009-11-13  8:59             ` Stefan Richter
2009-11-13 16:15               ` William Allen Simpson
2009-12-11 17:01         ` [PATCH v2] " William Allen Simpson
2009-12-11 21:07           ` Jarek Poplawski
2009-12-12 10:36             ` William Allen Simpson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).