From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 0/5] Make pernet_operations always read locked Date: Tue, 27 Mar 2018 13:18:26 -0400 (EDT) Message-ID: <20180327.131826.868714983333063962.davem@davemloft.net> References: <152216238129.1634.4807322431520445566.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: nicolas.dichtel@6wind.com, vyasevic@redhat.com, paulmck@linux.vnet.ibm.com, vyasevich@gmail.com, mark.rutland@arm.com, leonro@mellanox.com, avagin@virtuozzo.com, fw@strlen.de, ebiederm@xmission.com, roman.kapl@sysgo.com, dsahern@gmail.com, netdev@vger.kernel.org, bfields@fieldses.org To: ktkhai@virtuozzo.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:43602 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753662AbeC0RS3 (ORCPT ); Tue, 27 Mar 2018 13:18:29 -0400 In-Reply-To: <152216238129.1634.4807322431520445566.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: From: Kirill Tkhai Date: Tue, 27 Mar 2018 18:01:42 +0300 > All the pernet_operations are converted, and the last one > is in this patchset (nfsd_net_ops acked by J. Bruce Fields). > So, it's the time to kill pernet_operations::async field, > and make setup_net() and cleanup_net() always require > the rwsem only read locked. > > All further pernet_operations have to be developed to fit > this rule. Some of previous patches added a comment to > struct pernet_operations about that. > > Also, this patchset renames net_sem to pernet_ops_rwsem > to make the target area of the rwsem is more clear visible, > and adds more comments. Amazing work, series applied, thanks!