x25: remove the BKL
authorArnd Bergmann <arnd@arndb.de>
Sat, 22 Jan 2011 22:44:59 +0000 (23:44 +0100)
committerArnd Bergmann <arnd@arndb.de>
Sat, 5 Mar 2011 09:55:45 +0000 (10:55 +0100)
commit77b2283604bdd7053494a97b0e2fee97148206c6
tree4d5c54156d64fd80de765cc18dc7e4a68b5ec5e1
parent788257d6101d986ac8f2741aaa35974af47f574c
x25: remove the BKL

This replaces all instances of lock_kernel in x25
with lock_sock, taking care to release the socket
lock around sleeping functions (sock_alloc_send_skb
and skb_recv_datagram). It is not clear whether
this is a correct solution, but it seem to be what
other protocols do in the same situation.

Includes a fix suggested by Eric Dumazet.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David S. Miller <davem@davemloft.net>
Tested-by: Andrew Hendry <andrew.hendry@gmail.com>
Cc: linux-x25@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: Eric Dumazet <eric.dumazet@gmail.com>
net/x25/Kconfig
net/x25/af_x25.c
net/x25/x25_out.c