On Wed, Nov 15, 2017 at 12:48 AM, Cong Wang <xiyou.wangc...@gmail.com> wrote: > On Tue, Nov 14, 2017 at 3:17 AM, Tonghao Zhang <xiangxia.m....@gmail.com> > wrote: >> Hi cong, we increase the socket inuse in sk_allock ? > > How about sock_init_data()? > > Or at least you can replace get_net() with read_pnet()? Hi cong, I guess it is better to count socket inuse in sk_alloc. It is easy to maintain counter. In this way, we dont hold the refcnt again. I send the v3. Can you review it again ? thanks.
- [PATCH v2 net-next] socket: Move the socket inuse to nam... Tonghao Zhang
- Re: [PATCH v2 net-next] socket: Move the socket inu... Cong Wang
- Re: [PATCH v2 net-next] socket: Move the socket... Tonghao Zhang
- Re: [PATCH v2 net-next] socket: Move the socket... 基础平台部
- Re: [PATCH v2 net-next] socket: Move the so... Cong Wang
- Re: [PATCH v2 net-next] socket: Move th... Tonghao Zhang
- Re: [PATCH v2 net-next] socket: Mo... Cong Wang
- Re: [PATCH v2 net-next] socket... Tonghao Zhang
- [lkp-robot] [socket] 3bc58b1a49: BUG:using__this_c... kernel test robot