net: use the frag lru_lock to protect netns_frags.nqueues update
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 27 Mar 2013 05:55:56 +0000 (05:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2013 16:48:33 +0000 (12:48 -0400)
commit1b5ab0def4f6e42e8b8097c3b11d2e8d96baafec
tree7cdce8ba8eda1451847fead45108f4de39d5cec5
parent68399ac37e571c2d695ea3b08aa82235874b5158
net: use the frag lru_lock to protect netns_frags.nqueues update

Move the protection of netns_frags.nqueues updates under the LRU_lock,
instead of the write lock.  As they are located on the same cacheline,
and this is also needed when transitioning to use per hash bucket locking.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h
net/ipv4/inet_fragment.c