From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v3 2/2] net: Remove spinlock from get_net_ns_by_id() Date: Wed, 17 Jan 2018 15:43:16 -0500 (EST) Message-ID: <20180117.154316.1028937432353916551.davem@davemloft.net> References: <151609506842.12003.15536977929261353291.stgit@localhost.localdomain> <151609511167.12003.7323991178420491612.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, ebiederm@xmission.com To: ktkhai@virtuozzo.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:36188 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752778AbeAQUnS (ORCPT ); Wed, 17 Jan 2018 15:43:18 -0500 In-Reply-To: <151609511167.12003.7323991178420491612.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: 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.