aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-11-13 07:37:48 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-14 19:53:27 -0500
commitadae20cb2d20e5151b866945f802b0c2312f0f82 (patch)
tree82db161600f3689fc508aa4442d7a1a4ef22d2b6 /include
parent970d0f1b280372cfd46b6de5529d96f8448de943 (diff)
Bluetooth: Convert IRK list to RCU
This patch set converts the hdev->identity_resolving_keys list to use RCU to eliminate the need to use hci_dev_lock/unlock. An additional change that must be done is to remove use of CRYPTO_ALG_ASYNC for the hdev-specific AES crypto context. The reason is that this context is used for matching RPAs and the loop that does the matching is under the RCU read lock, i.e. is an atomic section which cannot sleep. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-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 a4adef22ad7c..fe2d5f299e12 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -121,6 +121,7 @@ struct smp_ltk {
121 121
122struct smp_irk { 122struct smp_irk {
123 struct list_head list; 123 struct list_head list;
124 struct rcu_head rcu;
124 bdaddr_t rpa; 125 bdaddr_t rpa;
125 bdaddr_t bdaddr; 126 bdaddr_t bdaddr;
126 u8 addr_type; 127 u8 addr_type;