From: Pavel Emelyanov Date: Fri, 28 Mar 2008 23:38:17 +0000 (-0700) Subject: [SOCK]: Enumerate struct proto-s to facilitate percpu inuse accounting (v2). X-Git-Tag: v2.6.26-rc1~1138^2~282 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13ff3d6fa4e6d8b6ee7c64245a0078e6a0e6f977;p=pandora-kernel.git [SOCK]: Enumerate struct proto-s to facilitate percpu inuse accounting (v2). The inuse counters are going to become a per-cpu array. Introduce an index for this array on the struct proto. To handle the case of proto register-unregister-register loop the bitmap is used. All its bits manipulations are protected with proto_list_lock and a sanity check for the bitmap being exhausted is also added. Signed-off-by: Pavel Emelyanov Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed