Bluetooth: rfcomm: Remove unnecessary krfcommd event
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 24 Jul 2011 04:10:35 +0000 (00:10 -0400)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 11 Aug 2011 22:50:26 +0000 (19:50 -0300)
commite5842cdb0f4f2c68f6acd39e286e5d10d8c073e8
treea7823b87a19c6f865221b0fb9553202a4da241a3
parent8e7c3d2e4ba18ee4cdcc1f89aec944fbff4ce735
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