Messages in this thread |  | | | Subject | Re: [PATCH] net: fix sock_clone reference mismatch with tcp memcontrol | | Date | Fri, 6 Jan 2012 13:14:23 -0800 (PST) | | From | (Laurent Chavey) |
| |
> Sockets can also be created through sock_clone. Because it copies > all data in the sock structure, it also copies the memcg-related pointer, > and all should be fine. However, since we now use reference counts in > socket creation, we are left with some sockets that have no reference > counts. It matters when we destroy them, since it leads to a mismatch. > > Signed-off-by: Glauber Costa <glommer@parallels.com> > CC: David S. Miller <davem@davemloft.net> > CC: Greg Thelen <gthelen@google.com> > CC: Hiroyouki Kamezawa <kamezawa.hiroyu@jp.fujitsu.com> > CC: Laurent Chavey <chavey@google.com> > > ---
Tested-by: Laurent Chavey <chavey@google.com>
|  |