From: Eric W. Biederman Date: Sat, 9 May 2015 02:10:31 +0000 (-0500) Subject: net: Modify sk_alloc to not reference count the netns of kernel sockets. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~331^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26abe14379f8;p=pandora-kernel.git net: Modify sk_alloc to not reference count the netns of kernel sockets. Now that sk_alloc knows when a kernel socket is being allocated modify it to not reference count the network namespace of kernel sockets. Keep track of if a socket needs reference counting by adding a flag to struct sock called sk_net_refcnt. Update all of the callers of sock_create_kern to stop using sk_change_net and sk_release_kernel as those hacks are no longer needed, to avoid reference counting a kernel socket. Signed-off-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- Reading git-diff-tree failed