[NETFILTER]: ip_conntrack: properly use RCU API for ip_ct_protos array
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Feb 2007 19:12:40 +0000 (11:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2007 19:12:40 +0000 (11:12 -0800)
commit642d628b2c92e5283bbd3c849c7099c64ab68856
tree349ed55d878ce0a6ea8ac207d15a344d3d302aa3
parente22a05486913ccb959281cd6370593bd8e197fa9
[NETFILTER]: ip_conntrack: properly use RCU API for ip_ct_protos array

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>
net/ipv4/netfilter/ip_conntrack_core.c
net/ipv4/netfilter/ip_conntrack_standalone.c
net/ipv4/netfilter/ip_nat_core.c