Skip to content

V3: Fix busy loop when disabling BT

Dimitris linux-bluetooth 1 version Applied

Status from this message: This patch was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesApplied

Patches in v1 Applied

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH BlueZ 0/1] V3: Fix busy loop when disabling BT

Splitting the service state test out of btd_device_is_connected and using only the bearer-specific test from adapter_remove_connection.

This intends to fix a busy loop that happens when BT is disabled from userspace with e.g. "rfkill block bluetooth":

1. Connect at least one device.
2. Run rfkill block bluetooth.
3. bluetoothd takes 100% CPU.

Bug reports:
https://github.com/bluez/bluez/issues/785
https://bugzilla.redhat.com/show_bug.cgi?id=2269516

Dimitris (1):
refactor bearer connected test

 src/adapter.c | 2 +-
 src/device.c  | 7 ++++++-
 src/device.h  | 1 +
 3 files changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.44.0