net: Remove spinlock from get_net_ns_by_id()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 16 Jan 2018 09:31:54 +0000 (12:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 20:42:35 +0000 (15:42 -0500)
commit42157277af17d5c05946c700eb03877d60760d3c
treee40d3af152a62455f84d43235b6a5132694ae8b9
parent0c06bea919f3289368a023d1a62a1bc319617fa3
net: Remove spinlock from get_net_ns_by_id()

idr_find() is safe under rcu_read_lock() and
maybe_get_net() guarantees that net is alive.

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