Messages in this thread | | | Date | Sat, 07 Jan 2012 10:17:02 -0800 (PST) | Subject | Re: [PATCH] net: fix sock_clone reference mismatch with tcp memcontrol | From | David Miller <> |
| |
From: Glauber Costa <glommer@parallels.com> Date: Fri, 6 Jan 2012 10:16:39 +0400
> 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>
Applied, thanks.
| |