Thread (8 messages) flat view 8 messages, 4 authors, 2012-03-23

Re: [PATCH] Bluetooth: Simplify L2CAP timer logic

From: Gustavo Padovan <hidden>
Date: 2012-03-20 13:26:32

Hi Andrei,

* Andrei Emeltchenko [off-list ref] [2012-03-20 14:51:08 +0200]:
From: Andrei Emeltchenko <redacted>

Simplify L2CAP timers logic. Previous logic was hard to understand.
Now we always hold(chan) when setting up timer and put(chan) only
if work pending and we successfully cancel delayed work.

If delayed work is executing it will put(chan) itself.

Signed-off-by: Andrei Emeltchenko <redacted>
---
 include/net/bluetooth/l2cap.h |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)
Applied, thanks.

	Gustavo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help