Eric Dumazet 1748376b66 net: Use a percpu_counter for sockets_allocated
Instead of using one atomic_t per protocol, use a percpu_counter
for "sockets_allocated", to reduce cache line contention on
heavy duty network servers. 

Note : We revert commit (248969ae31e1b3276fc4399d67ce29a5d81e6fd9
net: af_unix can make unix_nr_socks visbile in /proc),
since it is not anymore used after sock_prot_inuse_add() addition

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-25 21:16:35 -08:00
..
2008-10-22 18:54:47 -05:00
2008-10-31 00:56:49 -07:00
2008-11-25 18:00:48 -08:00
2008-09-12 16:30:20 -07:00
2008-11-20 21:10:23 -08:00
2008-11-25 17:35:18 -08:00
2008-11-25 17:35:18 -08:00
2008-07-05 21:26:57 -07:00
2008-06-11 21:00:38 -07:00
2008-06-11 21:00:38 -07:00
2008-11-25 18:00:48 -08:00
2008-06-11 21:00:38 -07:00
2008-02-29 11:46:17 -08:00
2008-03-28 16:28:36 -07:00
2008-11-12 00:54:54 -08:00
2008-11-16 23:01:49 -08:00
2008-06-11 21:00:38 -07:00
2008-07-05 21:25:39 -07:00
2008-11-16 19:39:21 -08:00
2008-11-25 18:00:48 -08:00