Skip to contentSkip to conversation

NET: Add debugging names to __RW_LOCK_UNLOCKED macros.

PATCH Applied Robert P. J. Day 2 participants 2 messages Mar 15, 2008 – Mar 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NET: Add debugging names to __RW_LOCK_UNLOCKED macros.

---

not compile tested, but this is a fairly straightforward change.

 net/ipv4/raw.c |    2 +-
 net/ipv6/raw.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
net/ipv4/raw.c +1 -1
index a3002fe..e10ef6c 100644
@@ -81,7 +81,7 @@
 #include <linux/netfilter_ipv4.h>
 
 static struct raw_hashinfo raw_v4_hashinfo = {
-	.lock = __RW_LOCK_UNLOCKED(),
+	.lock = __RW_LOCK_UNLOCKED(raw_v4_hashinfo.lock),
 };
 
 void raw_hash_sk(struct sock *sk, struct raw_hashinfo *h)
net/ipv6/raw.c +1 -1
index 8897ccf..d6afa02 100644
@@ -62,7 +62,7 @@
 #include <linux/seq_file.h>
 
 static struct raw_hashinfo raw_v6_hashinfo = {
-	.lock = __RW_LOCK_UNLOCKED(),
+	.lock = __RW_LOCK_UNLOCKED(raw_v6_hashinfo.lock),
 };
 
 static void raw_v6_hash(struct sock *sk)

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================