Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix L2CAP timeout values
@ 2012-01-04 11:10 Andrzej Kaczmarek
  2012-01-04 11:10 ` [PATCH 1/2] Bluetooth: Fix sk_sndtimeo initialization for L2CAP socket Andrzej Kaczmarek
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andrzej Kaczmarek @ 2012-01-04 11:10 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: kanak.gupta, Andrzej Kaczmarek

Hi,

After moving L2CAP timers to workqueues there is problem with timeout
values which are defined in miliseconds but timer functions works with
jiffies. As a result, timers are unreliable on platforms with CONFIG_HZ
not set to 1000.

Similar problem was fixed before workqueues but now it's apparently
back. This time however I left l2ca_set_timer to use values in jiffies
to avoid confusion and make code less prone to similar issues in
future (I hope).

Also together with patch from Peter Hurley it should fix problems with
SSP and RFCOMM as recently discovered (on platforms with
CONFIG_HZ != 1000).

Andrzej Kaczmarek (2):
  Bluetooth: Fix sk_sndtimeo initialization for L2CAP socket
  Bluetooth: l2cap_set_timer needs jiffies as timeout value

 include/net/bluetooth/l2cap.h |    6 +++---
 net/bluetooth/l2cap_core.c    |   12 ++++++++----
 net/bluetooth/l2cap_sock.c    |    2 +-
 3 files changed, 12 insertions(+), 8 deletions(-)

-- 
on behalf of ST-Ericsson


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-08 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 11:10 [PATCH 0/2] Fix L2CAP timeout values Andrzej Kaczmarek
2012-01-04 11:10 ` [PATCH 1/2] Bluetooth: Fix sk_sndtimeo initialization for L2CAP socket Andrzej Kaczmarek
2012-01-04 15:44   ` Marcel Holtmann
2012-01-04 11:10 ` [PATCH 2/2] Bluetooth: l2cap_set_timer needs jiffies as timeout value Andrzej Kaczmarek
2012-01-04 15:46   ` Marcel Holtmann
2012-01-08 20:29 ` [PATCH 0/2] Fix L2CAP timeout values Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox