Bluetooth: rfcomm: Remove unnecessary krfcommd event
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 24 Jul 2011 04:10:35 +0000 (00:10 -0400)
committerJaikumar Ganesh <jaikumar@google.com>
Tue, 2 Aug 2011 22:09:22 +0000 (15:09 -0700)
commita2aa662790e678c85611c93749819e2a51b6591b
tree037a073f3a504b3f0c34175d740f9fafb5880364
parent5fd537ad96aec7b0a2e2f3e19046dcfebf6ab689
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