Bluetooth: Convert RFCOMM spinlocks into mutexes
authorLibor Pechacek <lpechacek@suse.cz>
Tue, 29 Apr 2014 18:38:34 +0000 (20:38 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 6 May 2014 02:25:06 +0000 (19:25 -0700)
commit86aae6c7b577654b7293374973985a153e0c147e
tree2bc969c42c78d2fa817c0bdb0d0a85dcf692d075
parent22e70786413ed05950207eda7be420c280b776d7
Bluetooth: Convert RFCOMM spinlocks into mutexes

Enabling CONFIG_DEBUG_ATOMIC_SLEEP has shown that some rfcomm functions
acquiring spinlocks call sleeping locks further in the chain.  Converting
the offending spinlocks into mutexes makes sleeping safe.

Signed-off-by: Libor Pechacek <lpechacek@suse.cz>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/rfcomm.h
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/tty.c