From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] net: Convert net_mutex into rw_semaphore and down read it on net->init/->exit Date: Tue, 14 Nov 2017 10:11:29 -0800 Message-ID: <20171114101129.351d8aed@xeon-e3> References: <151066759055.14465.9783879083192000862.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, vyasevic@redhat.com, kstewart@linuxfoundation.org, pombredanne@nexb.com, vyasevich@gmail.com, mark.rutland@arm.com, gregkh@linuxfoundation.org, adobriyan@gmail.com, fw@strlen.de, nicolas.dichtel@6wind.com, xiyou.wangcong@gmail.com, roman.kapl@sysgo.com, paul@paul-moore.com, dsahern@gmail.com, daniel@iogearbox.net, lucien.xin@gmail.com, mschiffer@universe-factory.net, rshearma@brocade.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, ebiederm@xmission.com, avagin@virtuozzo.com, gorcunov@virtuozzo.com To: Kirill Tkhai Return-path: In-Reply-To: <151066759055.14465.9783879083192000862.stgit@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, 14 Nov 2017 16:53:33 +0300 Kirill Tkhai wrote: > + /* > + * RCU-protected list, modifiable by pernet-init and -exit methods. > + * When net namespace is alive (net::count > 0), all the changes > + * are made under rw_sem held on write. > + */ > + struct list_head fib_notifier_ops; > If you use __rcu annotation then it could be checked (and the comment is not needed).