git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc86802
)
ipv6: avoid taking locks at socket dismantle
author
Eric Dumazet
<edumazet@google.com>
Wed, 5 Dec 2012 09:18:10 +0000
(09:18 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 5 Dec 2012 21:01:28 +0000
(16:01 -0500)
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found