OSDN Git Service

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)
commit9dd4dd275f2e6dcef1f798118babcb5947f64497
tree72831ca8e0585c9bf9d429c83294929ced370448
parent1ef35827a999582669b38b71d3167907b4c2afd0
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