diff options
| author | Maksim Krasnyanskiy <maxk@qualcomm.com> | 2003-04-27 03:18:09 -0700 |
|---|---|---|
| committer | Maksim Krasnyanskiy <maxk@qualcomm.com> | 2003-04-27 03:18:09 -0700 |
| commit | 7c4efa6921c7af943b6951db1e116a16263c5277 (patch) | |
| tree | 5543cc6316a681fc9bd1314fbfd752df99aec921 /include | |
| parent | 46acabae966702def20e1a35e5064487747953a4 (diff) | |
[Bluetooth] Fix race condition in RFCOMM session and dcl scheduler.
This fixes random RFCOMM freezes reported by some people.
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/bluetooth/rfcomm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/bluetooth/rfcomm.h b/include/net/bluetooth/rfcomm.h index 3393e95c7e0f..2efdc72f4193 100644 --- a/include/net/bluetooth/rfcomm.h +++ b/include/net/bluetooth/rfcomm.h @@ -220,10 +220,9 @@ static inline void rfcomm_schedule(uint event) { if (!rfcomm_thread) return; - //set_bit(event, &rfcomm_event); - if (!test_and_set_bit(RFCOMM_SCHED_WAKEUP, &rfcomm_event)) - wake_up_process(rfcomm_thread); + set_bit(RFCOMM_SCHED_WAKEUP, &rfcomm_event); + wake_up_process(rfcomm_thread); } extern struct semaphore rfcomm_sem; |
