• Johan Hedberg's avatar
    Bluetooth: Convert IRK list to RCU · adae20cb
    Johan Hedberg authored
    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: default avatarJohan Hedberg <johan.hedberg@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    adae20cb
smp.c 41.2 KB