net: frag, move LRU list maintenance outside of rwlock
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 28 Jan 2013 23:45:51 +0000 (23:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jan 2013 18:36:24 +0000 (13:36 -0500)
commit3ef0eb0db4bf92c6d2510fe5c4dc51852746f206
tree3f0d424f598a82eb17a5199d27fec9964513e16e
parent6d7b857d541ecd1d9bd997c97242d4ef94b19de2
net: frag, move LRU list maintenance outside of rwlock

Updating the fragmentation queues LRU (Least-Recently-Used) list,
required taking the hash writer lock.  However, the LRU list isn't
tied to the hash at all, so we can use a separate lock for it.

Original-idea-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c