Bluetooth: rfcomm: Remove unnecessary krfcommd event
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 24 Jul 2011 04:10:35 +0000 (00:10 -0400)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:22:11 +0000 (12:22 -0800)
commita6d6a6ebb7524f446dd7054bbebc4a54fab2176e
treeef3e95da149a4b2df4964b735324ca981806786a
parent38b743198eadc7e6f5244babc8f3bc2ea5d3bef7
Bluetooth: rfcomm: Remove unnecessary krfcommd event

Removed superfluous event handling which was used to signal
that the rfcomm kthread had been woken. This appears to have been
used to prevent lost wakeups. Correctly ordering when the task
state is set to TASK_INTERRUPTIBLE is sufficient to prevent lost wakeups.

To prevent wakeups which occurred prior to initially setting
TASK_INTERRUPTIBLE from being lost, the main work of the thread loop -
rfcomm_process_sessions() - is performed prior to sleeping.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/rfcomm/core.c