Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757356Ab1DBCzG (ORCPT ); Fri, 1 Apr 2011 22:55:06 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:32917 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757251Ab1DBCzA (ORCPT ); Fri, 1 Apr 2011 22:55:00 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=eUIo7UUKP5YI7Z0opSWruDBz5B74YdfCOspd1sUqRnBENXXMRYzuSvEE3FhhQim3nh 6RebfhsEw+UL5uU/FlIKMLXeFLT6Y9EkHAKCIoZtVVfz+nvZ/Wbh4UDKJA/BqtDKuicX nY1jw5NrUE0zykZflD71i9hQLJtzD5Ay54bdA= From: Lucian Adrian Grijincu To: "'David S . Miller'" , Alexey Dobriyan , "Eric W . Biederman" , Octavian Purdila , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Lucian Adrian Grijincu Subject: [PATCH 21/24] sysctl: ipv6: register addrconf tables as private children Date: Sat, 2 Apr 2011 04:53:35 +0200 Message-Id: <89845283d0ed5cfbb63b2b3b5a1f52e425d239d6.1301711868.git.lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.rc0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1361 Lines: 42 This halves the time it takes to add an interface: $ time modprobe dummy numdummies=$n Without this patch: - n=5000 => real: 9:14m, sys: 8:46m - n=2000 => real: 1:19m, sys: 1:17m - n=1000 => real: 0:14m, sys: 0:14m With this patch: - n=5000 => real: 4:43m, sys: 4:32m - n=2000 => real: 0:39m, sys: 0:39m - n=1000 => real: 0:07m, sys: 0:07m Signed-off-by: Lucian Adrian Grijincu --- net/ipv6/addrconf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 6833fcb..6ac29d0 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -4512,8 +4512,8 @@ static int __addrconf_sysctl_register(struct net *net, char *dev_name, addrconf_ctl_path[ADDRCONF_CTL_PATH_DEV].procname = t->dev_name; - t->sysctl_header = register_net_sysctl_table(net, addrconf_ctl_path, - t->addrconf_vars); + t->sysctl_header = register_net_sysctl_table_with_parent(net, + addrconf_ctl_path, t->addrconf_vars, net->ipv6.sysctl.conf_hdr); if (t->sysctl_header == NULL) goto free_procname; -- 1.7.5.rc0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/