]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: hci_sync: Set HCI_CMD_DRAIN_WORKQUEUE during device close
authorHeitor Alves de Siqueira <halves@igalia.com>
Tue, 26 May 2026 13:50:58 +0000 (10:50 -0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 28 May 2026 12:52:21 +0000 (08:52 -0400)
commit525daaea459fc215f432de1b8debbd9144bf97b0
tree8d69068986506793426f55e5901ca6b7ba46cca0
parent40b87657200cfae93e48904fd9c9c8fc3e192cae
Bluetooth: hci_sync: Set HCI_CMD_DRAIN_WORKQUEUE during device close

Since hci_dev_close_sync() can now be called during the reset path, we
should also set HCI_CMD_DRAIN_WORKQUEUE. This avoids queuing timeouts
while the hdev workqueue is being drained.

Fixes: 877afadad2dc ("Bluetooth: When HCI work queue is drained, only queue chained work")
Signed-off-by: Heitor Alves de Siqueira <halves@igalia.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c