]> err.no Git - linux-2.6/commit
[NETFILTER]: nf_conntrack: properly use RCU API for nf_ct_protos/nf_ct_l3protos arrays
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Feb 2007 19:12:57 +0000 (11:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2007 19:12:57 +0000 (11:12 -0800)
commit923f4902fefdf4e89b0fb32c4e069d4f57d704f5
tree2fad9f83c0e6da178f5167f6efb2b75cbe28c68e
parent642d628b2c92e5283bbd3c849c7099c64ab68856
[NETFILTER]: nf_conntrack: properly use RCU API for nf_ct_protos/nf_ct_l3protos arrays

Replace preempt_{enable,disable} based RCU by proper use of the
RCU API and add missing rcu_read_lock/rcu_read_unlock calls in
all paths not obviously only used within packet process context
(nfnetlink_conntrack).

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netfilter/nf_conntrack_l3proto.h
net/ipv4/netfilter/nf_conntrack_proto_icmp.c
net/ipv4/netfilter/nf_nat_core.c
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_proto.c