On Sat, Dec 9, 2017 at 6:09 AM, Cong Wang <xiyou.wangc...@gmail.com> wrote: > On Thu, Dec 7, 2017 at 9:28 PM, Tonghao Zhang <xiangxia.m....@gmail.com> > wrote: >> >> Release the netlink sock created in kernel(not hold the _net_ namespace): >> > > You can avoid counting kernel sock by testing 'kern' in sk_alloc() > and testing 'sk->sk_net_refcnt' in __sk_free(). Hi cong, if we do it in this way, we will not counter the sock created in kernel, right ?
- [PATCH v5 2/2] sock: Move the socket inuse to namespace. Tonghao Zhang
- Re: [PATCH v5 2/2] sock: Move the socket inuse to names... Eric Dumazet
- Re: [PATCH v5 2/2] sock: Move the socket inuse to n... Cong Wang
- Re: [PATCH v5 2/2] sock: Move the socket inuse to n... Tonghao Zhang
- Re: [PATCH v5 2/2] sock: Move the socket inuse ... Eric Dumazet
- Re: [PATCH v5 2/2] sock: Move the socket in... Tonghao Zhang
- Re: [PATCH v5 2/2] sock: Move the sock... Tonghao Zhang
- Re: [PATCH v5 2/2] sock: Move the ... Eric Dumazet
- Re: [PATCH v5 2/2] sock: Move the ... Tonghao Zhang
- Re: [PATCH v5 2/2] sock: Move the socket inuse ... Cong Wang
- Re: [PATCH v5 2/2] sock: Move the socket in... Tonghao Zhang