]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Convert IRK list to RCU
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Nov 2014 12:37:48 +0000 (14:37 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 15 Nov 2014 00:53:27 +0000 (01:53 +0100)
commit942e656febe64729e8bd3895337f0364f335fdc6
tree82db161600f3689fc508aa4442d7a1a4ef22d2b6
parent511f67154fc4a07a905fccf8fdcbbc4b19ac7bc8
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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/smp.c