Bluetooth: Move non-critical sections outside of the dev lock
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jan 2013 13:29:38 +0000 (15:29 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 10 Jan 2013 08:09:59 +0000 (06:09 -0200)
commit13ecd8b6628c14c9a27832ce7c48315385272208
tree6bf0201d29c30f3c79650e4dc87ee1df6512bb63
parentee98f4738050bb93823ce9ba849f5d78f5b8c1a1
Bluetooth: Move non-critical sections outside of the dev lock

This patch fixes sections of code that do not need hci_lock_dev to be
outside of the lock. Such sections include code that do not touch the
hdev at all as well as sections which just read a single byte from the
supported_features value (i.e. all lmp_*_capable() macros).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c