From: Eric Dumazet Date: Wed, 5 Dec 2012 09:18:10 +0000 (+0000) Subject: ipv6: avoid taking locks at socket dismantle X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e1efe9d5e10921f1e2152b108e013605fca3c9f;p=pandora-kernel.git ipv6: avoid taking locks at socket dismantle ipv6_sock_mc_close() is called for ipv6 sockets at close time, and most of them don't use multicast. Add a test to avoid contention on a shared spinlock. Same heuristic applies for ipv6_sock_ac_close(), to avoid contention on a shared rwlock. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed