aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipvs/ip_vs_core.c
diff options
context:
space:
mode:
authorHans Schillstrom <hans@schillstrom.com>2011-05-03 22:09:30 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2011-05-10 09:52:33 +0200
commit1ae132b0347907ac95b8bc9dba37934f59d2a508 (patch)
tree12d525adcb59dc199c9dd40924499bab03621c59 /net/netfilter/ipvs/ip_vs_core.c
parent103a9778e07bcc0cd34b5c35a87281454eec719e (diff)
downloadkernel_samsung_smdk4412-1ae132b0347907ac95b8bc9dba37934f59d2a508.zip
kernel_samsung_smdk4412-1ae132b0347907ac95b8bc9dba37934f59d2a508.tar.gz
kernel_samsung_smdk4412-1ae132b0347907ac95b8bc9dba37934f59d2a508.tar.bz2
IPVS: Change of socket usage to enable name space exit.
If the sync daemons run in a name space while it crashes or get killed, there is no way to stop them except for a reboot. When all patches are there, ip_vs_core will handle register_pernet_(), i.e. ip_vs_sync_init() and ip_vs_sync_cleanup() will be removed. Kernel threads should not increment the use count of a socket. By calling sk_change_net() after creating a socket this is avoided. sock_release cant be used intead sk_release_kernel() should be used. Thanks Eric W Biederman for your advices. Signed-off-by: Hans Schillstrom <hans@schillstrom.com> [horms@verge.net.au: minor edit to changelog] Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_core.c')
-rw-r--r--net/netfilter/ipvs/ip_vs_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 07accf6..a0791dc 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -1896,7 +1896,7 @@ static int __net_init __ip_vs_init(struct net *net)
static void __net_exit __ip_vs_cleanup(struct net *net)
{
- IP_VS_DBG(10, "ipvs netns %d released\n", net_ipvs(net)->gen);
+ IP_VS_DBG(2, "ipvs netns %d released\n", net_ipvs(net)->gen);
}
static struct pernet_operations ipvs_core_ops = {