net: Replace ip_ra_lock with per-net mutex
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 22 Mar 2018 09:45:40 +0000 (12:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:12:56 +0000 (15:12 -0400)
commitd9ff3049739e349b5380b96226f9ad766741773d
tree0b09f0de0ff410fef91ad0224a241b322bd0eb05
parent5796ef75ec7b6019eac88f66751d663d537a5cd3
net: Replace ip_ra_lock with per-net mutex

Since ra_chain is per-net, we may use per-net mutexes
to protect them in ip_ra_control(). This improves
scalability.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/core/net_namespace.c
net/ipv4/ip_sockglue.c