diff options
author | Denis V. Lunev <den@openvz.org> | 2008-04-16 04:59:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-16 04:59:46 -0400 |
commit | 65a18ec58e5e6186103f62f720acea94dfb26f4e (patch) | |
tree | aa0e58979c343d4519ba9dfa3a1e6a416e98e16b /include/net/sock.h | |
parent | 5d1e4468a7705db7c1415a65fd16f07113afc1b2 (diff) |
[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 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 09255eae93e9..dc42b44c2aa1 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1314,7 +1314,7 @@ void sock_net_set(struct sock *sk, struct net *net) | |||
1314 | static inline void sk_change_net(struct sock *sk, struct net *net) | 1314 | static inline void sk_change_net(struct sock *sk, struct net *net) |
1315 | { | 1315 | { |
1316 | put_net(sock_net(sk)); | 1316 | put_net(sock_net(sk)); |
1317 | sock_net_set(sk, net); | 1317 | sock_net_set(sk, hold_net(net)); |
1318 | } | 1318 | } |
1319 | 1319 | ||
1320 | extern void sock_enable_timestamp(struct sock *sk); | 1320 | extern void sock_enable_timestamp(struct sock *sk); |