]> 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)
commitb9797f6905694e82ad9091b9490dc855b6a7c2fc
tree72831ca8e0585c9bf9d429c83294929ced370448
parentf83dad2e423d6f8ae0ab1f137e807ea7a57795ab
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