From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-db5eur01on0121.outbound.protection.outlook.com ([104.47.2.121]:24202 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752255AbeBSJ6f (ORCPT ); Mon, 19 Feb 2018 04:58:35 -0500 Subject: [PATCH 0/3] net: Get rid of net_mutex and simplify cleanup_list queueing From: Kirill Tkhai To: davem@davemloft.net, nicolas.dichtel@6wind.com, vyasevic@redhat.com, ktkhai@virtuozzo.com, paulmck@linux.vnet.ibm.com, vyasevich@gmail.com, mark.rutland@arm.com, gregkh@linuxfoundation.org, leonro@mellanox.com, avagin@virtuozzo.com, fw@strlen.de, roman.kapl@sysgo.com, netdev@vger.kernel.org Date: Mon, 19 Feb 2018 12:58:28 +0300 Message-ID: <151903409491.8021.11032992295248447417.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: [1/3] kills net_mutex and makes net_sem be taken for write instead. This is made to take less locks (1 instead of 2) for the time before all pernet_operations are converted. [2-3/3] simplifies dead net cleanup queueing, and makes llist api be used for that. --- Kirill Tkhai (3): net: Kill net_mutex net: Make cleanup_list and net::cleanup_list of llist type net: Queue net_cleanup_work only if there is first net added include/linux/rtnetlink.h | 1 - include/net/net_namespace.h | 12 +++++-- net/core/net_namespace.c | 75 ++++++++++++++++++++++--------------------- 3 files changed, 47 insertions(+), 41 deletions(-) -- Signed-off-by: Kirill Tkhai