diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-02-22 08:57:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-23 00:45:56 +0100 |
commit | 808f5114a9206fee855117d416440e1071ab375c (patch) | |
tree | cec3f04220909b77c0880029b63862553ad5161c /include/net/netns/packet.h | |
parent | seq_file: add RCU versions of new hlist/list iterators (v3) (diff) | |
download | linux-808f5114a9206fee855117d416440e1071ab375c.tar.xz linux-808f5114a9206fee855117d416440e1071ab375c.zip |
packet: convert socket list to RCU (v3)
Convert AF_PACKET to use RCU, eliminating one more reader/writer lock.
There is no need for a real sk_del_node_init_rcu(), because sk_del_node_init
is doing the equivalent thing to hlst_del_init_rcu already; but added
some comments to try and make that obvious.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/packet.h')
-rw-r--r-- | include/net/netns/packet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/netns/packet.h b/include/net/netns/packet.h index 637daf698884..cb4e894c0f8d 100644 --- a/include/net/netns/packet.h +++ b/include/net/netns/packet.h @@ -4,11 +4,11 @@ #ifndef __NETNS_PACKET_H__ #define __NETNS_PACKET_H__ -#include <linux/list.h> +#include <linux/rculist.h> #include <linux/spinlock.h> struct netns_packet { - rwlock_t sklist_lock; + spinlock_t sklist_lock; struct hlist_head sklist; }; |