From: Pavel Emelyanov Date: Tue, 1 Apr 2008 02:42:16 +0000 (-0700) Subject: [SOCK][NETNS]: Add the percpu prot_inuse counter in the struct net. X-Git-Tag: v2.6.26-rc1~1138^2~266 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70ee115942be6ce52ff10e5e813fb4da82cdb25a;p=pandora-kernel.git [SOCK][NETNS]: Add the percpu prot_inuse counter in the struct net. Such an accounting would cost us two more dereferences to get the percpu variable from the struct net, so I make sock_prot_inuse_get and _add calls work differently depending on CONFIG_NET_NS - without it old optimized routines are used. The per-cpu counter for init_net is prepared in core_initcall, so that even af_inet, that starts as fs_initcall, will already have the init_net prepared. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed