summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-04-16 01:59:46 -0700
committerDavid S. Miller <davem@davemloft.net>2008-04-16 01:59:46 -0700
commit65a18ec58e5e6186103f62f720acea94dfb26f4e (patch)
treeaa0e58979c343d4519ba9dfa3a1e6a416e98e16b /net
parent5d1e4468a7705db7c1415a65fd16f07113afc1b2 (diff)
downloadblackbird-op-linux-65a18ec58e5e6186103f62f720acea94dfb26f4e.tar.gz
blackbird-op-linux-65a18ec58e5e6186103f62f720acea94dfb26f4e.zip
[NETNS]: Add netns refcnt debug for kernel sockets.
Protocol control sockets and netlink kernel sockets should not prevent the namespace stop request. They are initialized and disposed in a special way by sk_change_net/sk_release_kernel. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index c0ecbdcf75d8..54c836a2216b 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1001,6 +1001,7 @@ void sk_release_kernel(struct sock *sk)
sock_hold(sk);
sock_release(sk->sk_socket);
+ release_net(sock_net(sk));
sock_net_set(sk, get_net(&init_net));
sock_put(sk);
}
OpenPOWER on IntegriCloud