]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Fix rcv socket locking
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Sep 2008 18:48:46 +0000 (11:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Sep 2008 18:48:46 +0000 (11:48 -0700)
commit9ef872c45e6d34f5cb60a71333371f295772918a
tree5cd95c0592407ac49b4f6bd9aa8ba71d93500aae
parent543508c9dd39ccac75b912450620fffedab0939e
udp: Fix rcv socket locking

The previous patch in response to the recursive locking on IPsec
reception is broken as it tries to drop the BH socket lock while in
user context.

This patch fixes it by shrinking the section protected by the
socket lock to sock_queue_rcv_skb only.  The only reason we added
the lock is for the accounting which happens in that function.

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