Bluetooth: Change sk lock to chan lock in L2CAP core
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Wed, 22 Feb 2012 15:11:56 +0000 (17:11 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:02 +0000 (13:07 +0200)
commit6be3655552ee49aa2b5fd20fa1b08f28d0feac86
tree921d44bd7d1ca85df0b36113dec274b269d575f2
parent643162a8e2c15a1c1983a0063d9941240b3bde30
Bluetooth: Change sk lock to chan lock in L2CAP core

Change sk lock to chan lock in l2cap core and move sk locks
to l2cap sock code. bh_locks were used because of being RCU
critical section. When needed use explicit socket locks.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Reviewed-by: Ulisses Furquim <ulisses@profusion.mobi>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c