commit | fba7ecf09bc458b15f9d578e4213c8c349f9592d | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Wed Feb 18 14:53:55 2015 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Thu Feb 19 08:44:28 2015 +0100 |
tree | b479fe60d7d4d2853cf3c9cd740414c9125f8364 | |
parent | 00629e0fd56d528f0da4d9606726a4e22e576ace [diff] |
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>