Received: by 10.192.165.156 with SMTP id m28csp1355113imm; Wed, 18 Apr 2018 08:23:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+birjcpwl+OIKgCB21GdmiDsD3Iqu2iH/0VufdXc7TJnQHcs2ro/frVYgBp1Q1IXZbYPYm X-Received: by 2002:a17:902:6541:: with SMTP id d1-v6mr2490509pln.196.1524064987533; Wed, 18 Apr 2018 08:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524064987; cv=none; d=google.com; s=arc-20160816; b=w3C2czOA+KjW3LknAE/x3tXRnP0+HLH6ytCMvxTSeQxnwpjnI6ccaJiqhFCPyCotmP TI3U/sjsMfKw9IM/u6W09fq/sDFDunVBAlQL6iGEj0epjXYaFBBQConOFfZdOhFUV6xx GfCzCZ+3UoyZnduIXMGAW+oB1eVJ/NN1AcTlFi/J0jtnpepjsnrpHVW+8ew1bf+DRoaG B+sSjRYkmG+b5bxqpHAZrbI7Huv3Us5+dniyzonT6OB0/LZp+HPtgv+D3hwFXytSqNAQ rB+/JKVmDOfkzvLb/KDfQMjpb7Zx7L4LL/p3rIj+A08TrkZ5M8iwnI5KqVhzaG3aiGT2 tDTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xaaVcz4wi1LINIQeDe2WVhcygNajPOwBcGjg4lF3keI=; b=I0KcIBJjhNIAaGjPsJs89+bzO37EWeq37t9yV3oJiwZHrA2eMIScur3cyWFe6C9Pi2 i2qJ+ohWaS3pjayEpccTDAoBhgC65W/DXLMrbuvdyqrO9ZGnRb6RnRjBfy4Ka/TyV5jw Ij73MFZ2p7Pk6b9Y0/W2zgng+tXrkYvQ2BgRSTEH7/DYlvRqHQdR6dswzRvMMoIF9Qkg tE6yupGWppn1Pv4/BGSGCvPkQcneRomb4A/NShupmf77kUNogd1xkDxgQTHo2yU0veuj 7eiWyAS9c3BuzFxfwQgh8ZrRdCDuRCOC2rIVMLEmW20SKTlHRumuD8Rkp6c/sBdC0q5V Vu7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f78si1354045pfa.79.2018.04.18.08.22.52; Wed, 18 Apr 2018 08:23:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753256AbeDRPVW (ORCPT + 99 others); Wed, 18 Apr 2018 11:21:22 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44484 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbeDRPVU (ORCPT ); Wed, 18 Apr 2018 11:21:20 -0400 Received: by mail-wr0-f195.google.com with SMTP id o15-v6so5900483wro.11; Wed, 18 Apr 2018 08:21:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xaaVcz4wi1LINIQeDe2WVhcygNajPOwBcGjg4lF3keI=; b=O5mh6Qba/AI0FezYQUfbkGx2DhueAL6yKNBi9V4PM02vgUYrmpTS+yxsCiiDkPdWSc Z6nHXcxIdnV79NrqW9+bnwLL0NPgTBCT0uIWVQO0ypxSp6ITVkmkeXe0G0hQqIafCUay sSjHYAsoob9viGw1pOWnYHFdVn7k0CdBrwxSvhpxfIR8JXxpchGzrV51Fso3UMPTb6OO eb8lYIjZyjcRKRbbYUZZKjsvXSIgXXMRstH2jzEsGW2KiL1hUbfj8OTPRrdYs0luENXv JnZeCRcwCEXmx2OxcGenIdy8Nj2S3dM892KzuV2rdqyWkd/D7+TaqF7DZwR+ot6fLDtj a9bQ== X-Gm-Message-State: ALQs6tDoJXzgMY1PuiK/dTVcPbx+cRCUfgF4f5t5XIxDKZs9ilwMXxhr UekdpIrZ6R+i9xivZHw/f7s= X-Received: by 2002:adf:9b83:: with SMTP id d3-v6mr2030196wrc.58.1524064879068; Wed, 18 Apr 2018 08:21:19 -0700 (PDT) Received: from localhost.localdomain (u-084-c204.eap.uni-tuebingen.de. [134.2.84.204]) by smtp.gmail.com with ESMTPSA id p33-v6sm2459212wrc.14.2018.04.18.08.21.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 08:21:18 -0700 (PDT) From: Christian Brauner To: ebiederm@xmission.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: avagin@virtuozzo.com, ktkhai@virtuozzo.com, serge@hallyn.com, gregkh@linuxfoundation.org, Christian Brauner Subject: [PATCH net-next 0/2] netns: uevent performance tweaks Date: Wed, 18 Apr 2018 17:21:04 +0200 Message-Id: <20180418152106.18519-1-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, This series deals with a bunch of performance improvements when sending out uevents that have been extensively discussed here: https://lkml.org/lkml/2018/4/10/592 - Only record uevent sockets from network namespaces owned by the initial user namespace in the global uevent socket list. Eric, this is the exact patch we agreed upon in https://lkml.org/lkml/2018/4/10/592. **A very detailed rationale is present in the commit message for [PATCH 1/2] netns: restrict uevents** - Decouple the locking for network namespaces in the global uevent socket list from the locking for network namespaces not in the global uevent socket list. **A very detailed rationale is present in the commit message [PATCH 2/2] netns: isolate seqnums to use per-netns locks** Thanks! Christian Christian Brauner (2): netns: restrict uevents netns: isolate seqnums to use per-netns locks include/linux/kobject.h | 3 - include/net/net_namespace.h | 3 + kernel/ksysfs.c | 3 +- lib/kobject_uevent.c | 118 ++++++++++++++++++++++++++++-------- net/core/net_namespace.c | 13 ++++ 5 files changed, 110 insertions(+), 30 deletions(-) -- 2.17.0