Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/4] Bluetooth: Use zero timeout for immediate scheduling
@ 2014-08-17 21:41 johan.hedberg
  2014-08-17 21:41 ` [PATCH 2/4] Bluetooth: Fix hci_conn reference counting with hci_chan johan.hedberg
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: johan.hedberg @ 2014-08-17 21:41 UTC (permalink / raw)
  To: linux-bluetooth

From: Johan Hedberg <johan.hedberg@intel.com>

There's no point in passing a "small" timeout to queue_delayed_work() to
try to get the callback faster scheduled. Passing 0 is perfectly valid
and will cause a shortcut to a direct queue_work().

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
---
 include/net/bluetooth/hci_core.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index aa75eee8ad7f..18c24f6fce6c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -791,7 +791,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
 				if (!conn->out)
 					timeo *= 2;
 			} else {
-				timeo = msecs_to_jiffies(10);
+				timeo = 0;
 			}
 			break;
 
@@ -800,7 +800,7 @@ static inline void hci_conn_drop(struct hci_conn *conn)
 			break;
 
 		default:
-			timeo = msecs_to_jiffies(10);
+			timeo = 0;
 			break;
 		}
 
-- 
1.9.3


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

end of thread, other threads:[~2014-08-17 22:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-17 21:41 [PATCH 1/4] Bluetooth: Use zero timeout for immediate scheduling johan.hedberg
2014-08-17 21:41 ` [PATCH 2/4] Bluetooth: Fix hci_conn reference counting with hci_chan johan.hedberg
2014-08-17 22:15   ` Marcel Holtmann
2014-08-17 21:41 ` [PATCH 3/4] Bluetooth: Set disc_timeout to 0 when calling hci_chan_del johan.hedberg
2014-08-17 22:15   ` Marcel Holtmann
2014-08-17 21:41 ` [PATCH 4/4] Bluetooth: Ignore incoming data after initiating disconnection johan.hedberg
2014-08-17 22:15   ` Marcel Holtmann
2014-08-17 22:15 ` [PATCH 1/4] Bluetooth: Use zero timeout for immediate scheduling Marcel Holtmann

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