]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary work structs from SMP code
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 20 May 2014 06:45:49 +0000 (09:45 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 20 May 2014 15:44:13 +0000 (08:44 -0700)
commit94ac02dc5d3c31e2939149a9e94040c7678963b4
tree72831ca8e0585c9bf9d429c83294929ced370448
parent4f0cdcc135aa1552b0c90a3a615a9029293f3cc2
Bluetooth: Remove unnecessary work structs from SMP code

When the SMP code was initially created (mid-2011) parts of the
Bluetooth subsystem were still not converted to use workqueues. This
meant that the crypto calls, which could sleep, couldn't be called
directly. Because of this the "confirm" and "random" work structs were
introduced.

These days the entire Bluetooth subsystem runs through workqueues which
makes these structs unnecessary. This patch removes them and converts
the calls to queue them to use direct function calls instead.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c