aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-11-13 14:37:47 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-11-15 01:53:27 +0100
commit970d0f1b280372cfd46b6de5529d96f8448de943 (patch)
tree5c851219000bb94098fc2edca1561eaca617b170 /include/net/bluetooth/hci_core.h
parentBluetooth: Trigger SMP for the appropriate LE CoC errors (diff)
downloadlinux-dev-970d0f1b280372cfd46b6de5529d96f8448de943.tar.xz
linux-dev-970d0f1b280372cfd46b6de5529d96f8448de943.zip
Bluetooth: Convert LTK list to RCU
This patch set converts the hdev->long_term_keys list to use RCU to eliminate the need to use hci_dev_lock/unlock. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 4e39a5adfcab..a4adef22ad7c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -108,6 +108,7 @@ struct smp_csrk {
struct smp_ltk {
struct list_head list;
+ struct rcu_head rcu;
bdaddr_t bdaddr;
u8 bdaddr_type;
u8 authenticated;