]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Mon, 1 Aug 2011 17:55:27 +0000 (14:55 -0300)
commit186fb53a26afb9cd4bd2f6d9ef8ab28d4203abf3
treee1c5b89ee12232423ff1f54b201de8006dc0f667
parenta3aab79bee8bb38de5b8043b6dd125f56a6f1934
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