]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/icmp.c
[ICMP]: Allocate data for __icmp(v6)_sk dynamically.
authorDenis V. Lunev <den@openvz.org>
Fri, 29 Feb 2008 19:17:11 +0000 (11:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Feb 2008 19:17:11 +0000 (11:17 -0800)
commit79c911595390c8fdc8d8a487ac1951d854b1cd09
tree9688e154b321f6c976b2d43abbfd4bb929b18e1a
parent405666db84b984b68fc75794069f424c02e5796c
[ICMP]: Allocate data for __icmp(v6)_sk dynamically.

Own __icmp(v6)_sk should be present in each namespace. So, it should be
allocated dynamically. Though, alloc_percpu does not fit the case as it
implies additional dereferrence for no bonus.

Allocate data for pointers just like __percpu_alloc_mask does and place
pointers to struct sock into this array.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c
net/ipv6/icmp.c