]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: nf_conntrack_core: avoid taking nf_conntrack_lock in nf_conntrack_alter_...
authorPatrick McHardy <kaber@trash.net>
Thu, 31 Jan 2008 12:37:36 +0000 (04:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:52 +0000 (19:27 -0800)
commit62d0d43669a41dc5beb4cfa55358306d64c9400f
treed449d642b8004a10fa811ad1d0e2af2225788025
parentcc0f3092c827bc26511eb57b4a9d1b32344805f9
[NETFILTER]: nf_conntrack_core: avoid taking nf_conntrack_lock in nf_conntrack_alter_reply

The conntrack is unconfirmed, so we have an exclusive reference, which
means that the write_lock is definitely unneeded. A read_lock used to
be needed for the helper lookup, but since we're using RCU for helpers
now rcu_read_lock is enough.

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