Bluetooth: Convert hci_cb_list_lock to a mutex
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 18 Feb 2015 12:53:55 +0000 (14:53 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Feb 2015 07:44:28 +0000 (08:44 +0100)
commitfba7ecf09bc458b15f9d578e4213c8c349f9592d
treeb479fe60d7d4d2853cf3c9cd740414c9125f8364
parent00629e0fd56d528f0da4d9606726a4e22e576ace
Bluetooth: Convert hci_cb_list_lock to a mutex

We'll soon need to be able to sleep inside the loops that iterate the
hci_cb list, so neither a spinlock, rwlock or rcu are usable. This patch
changes the lock to a mutex which permits sleeping while holding the
lock.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c