]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
udp: Drop socket lock for encapsulated packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 9 Aug 2008 07:35:05 +0000 (00:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Aug 2008 07:35:05 +0000 (00:35 -0700)
commitd97106ea52aa57e63ff40d04479016836bbb5a4e
tree5969603d7af02a5672f61c84c2017a6e064472f5
parent8123b421e8ed944671d7241323ed3198cccb4041
udp: Drop socket lock for encapsulated packets

The socket lock is there to protect the normal UDP receive path.
Encapsulation UDP sockets don't need that protection.  In fact
the locking is deadly for them as they may contain another UDP
packet within, possibly with the same addresses.

Also the nested bit was copied from TCP.  TCP needs it because
of accept(2) spawning sockets.  This simply doesn't apply to UDP
so I've removed it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c