]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: nf_conntrack: switch protocol registration/unregistration to mutex
authorPatrick McHardy <kaber@trash.net>
Wed, 14 Mar 2007 23:37:52 +0000 (16:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:25:39 +0000 (22:25 -0700)
commit29cbb9ab3c7643ae06995c10ab7e4f647e1710a3
treebaf307a4daa2c63ccc451d6dbcd47f55945aea9a
parent1084c15ab7814fc3033e3a94bc97b3d660c7a596
[NETFILTER]: nf_conntrack: switch protocol registration/unregistration to mutex

The protocol lookups done by nf_conntrack are already protected by RCU,
there is no need to keep taking nf_conntrack_lock for registration
and unregistration. Switch to a mutex.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_proto.c