Re: [PATCH v3 2/2] net: Remove spinlock from get_net_ns_by_id()

2018-01-17 Thread David Miller
From: Kirill Tkhai Date: Tue, 16 Jan 2018 12:31:54 +0300 > idr_find() is safe under rcu_read_lock() and > maybe_get_net() guarantees that net is alive. > > Signed-off-by: Kirill Tkhai Also applied to net-next, thanks.

[PATCH v3 2/2] net: Remove spinlock from get_net_ns_by_id()

2018-01-16 Thread Kirill Tkhai
idr_find() is safe under rcu_read_lock() and maybe_get_net() guarantees that net is alive. Signed-off-by: Kirill Tkhai --- net/core/net_namespace.c |2 -- 1 file changed, 2 deletions(-) diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 3c77d84ad60d..1ccb953b3b09 100644