netfilter: ctnetlink: move event reporting for new entries outside the lock
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Mar 2009 14:28:09 +0000 (15:28 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 16 Mar 2009 14:28:09 +0000 (15:28 +0100)
commitf0a3c0869f3b0ef93d9df044e9a41e40086d4c97
tree2747803899c206b1c0dc1cd0ac1d3c9f51b7eb3b
parente098360f159b3358f085543eb6dc2eb500d6667c
netfilter: ctnetlink: move event reporting for new entries outside the lock

This patch moves the event reporting outside the lock section. With
this patch, the creation and update of entries is homogeneous from
the event reporting perspective. Moreover, as the event reporting is
done outside the lock section, the netlink broadcast delivery can
benefit of the yield() call under congestion.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_netlink.c