linux/include/net/bluetooth
Johan Hedberg f3d82d0c8e Bluetooth: Move identity address update behind a workqueue
The identity address update of all channels for an l2cap_conn needs to
take the lock for each channel, i.e. it's safest to do this by a
separate workqueue callback.

Previously this was partially solved by moving the entire SMP key
distribution behind a workqueue. However, if we want SMP context locking
to be correct and safe we should always use the l2cap_chan lock when
accessing it, meaning even smp_distribute_keys needs to take that lock
which would once again create a dead lock when updating the identity
address.

The simplest way to solve this is to have l2cap_conn manage the deferred
work which is what this patch does. A subsequent patch will remove the
now unnecessary SMP key distribution work struct.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-09-08 19:07:55 +02:00
..
bluetooth.h Bluetooth: Shrink size of struct l2cap_ctrl fields 2014-07-03 17:42:41 +02:00
hci.h Bluetooth: Rename HCI_PAIRABLE to HCI_BONDABLE 2014-07-30 19:28:41 +02:00
hci_core.h Bluetooth: Update hci_disconnect() to return an error value 2014-09-08 19:07:55 +02:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
hci_sock.h Bluetooth: Move HCI socket definitions into its own header file 2014-07-11 13:53:04 +03:00
l2cap.h Bluetooth: Move identity address update behind a workqueue 2014-09-08 19:07:55 +02:00
mgmt.h Bluetooth: Rename pairable mgmt setting to bondable 2014-07-30 19:28:41 +02:00
rfcomm.h Bluetooth: Convert RFCOMM spinlocks into mutexes 2014-05-05 19:25:06 -07:00
sco.h Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c 2014-07-11 13:58:58 +03:00