Bluetooth: Remove global mutex hci_task_lock
authorUlisses Furquim <ulisses@profusion.mobi>
Tue, 20 Dec 2011 19:10:51 +0000 (17:10 -0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 21 Dec 2011 04:19:18 +0000 (02:19 -0200)
commitf2d64f6aa6c681ca00a71c2b3304ed80dc317752
tree9963338b8b8f6e3519e6e08e334fca91268e8184
parentfa0fb93f2ac308a76fa64eb57c18511dadf97089
Bluetooth: Remove global mutex hci_task_lock

The hci_task_lock mutex (previously a lock) was supposed to protect the
register/unregister of HCI protocols against RX/TX tasks. This will not
be needed anymore because SCO and L2CAP will always be compiled.

Moreover, with the recent move of RX/TX to workqueues per device the
global hci_task_lock was causing starvation between different HCI
devices.

Signed-off-by: Ulisses Furquim <ulisses@profusion.mobi>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c