Re: [PATCH net-2.6.26 1/5][SOCK]: Enumerate struct proto-s to facilitate percpu inuse accounting (v2).
From: David Miller <davem@davemloft.net>
Date: 2008-03-28 23:40:24
From: David Miller <davem@davemloft.net>
Date: 2008-03-28 23:40:24
From: Eric Dumazet <redacted> Date: Fri, 28 Mar 2008 18:15:51 +0100
Pavel Emelyanov a écrit :quoted
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 <redacted>Acked-by: Eric Dumazet <redacted>
Applied.