netfilter: conntrack: free extension area immediately
Instead of waiting for rcu grace period just free it directly. This is safe because conntrack lookup doesn't consider extensions. Other accesses happen while ct->ext can't be free'd, either because a ct refcount was taken or because the conntrack hash bucket lock or the dying list spinlock have been taken. This allows to remove __krealloc in a followup patch, netfilter was the only user. Signed-off-by:Florian Westphal <fw@strlen.de> Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org>
Showing
- include/net/netfilter/nf_conntrack_extend.h 0 additions, 10 deletionsinclude/net/netfilter/nf_conntrack_extend.h
- net/netfilter/nf_conntrack_core.c 0 additions, 2 deletionsnet/netfilter/nf_conntrack_core.c
- net/netfilter/nf_conntrack_extend.c 10 additions, 11 deletionsnet/netfilter/nf_conntrack_extend.c
Please register or sign in to comment