Bluetooth: Run all background scan updates through req_workqueue

Instead of firing off a simple async request queue all background scan
updates through req_workqueue and use hci_req_sync() there to ensure
that no two updates overlap with each other.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Johan Hedberg 2015-11-11 08:11:17 +02:00 committed by Marcel Holtmann
parent 5fc16cc4f3
commit 2e93e53b8f
4 changed files with 25 additions and 24 deletions

View file

@ -327,6 +327,8 @@ struct hci_dev {
struct work_struct cmd_work;
struct work_struct tx_work;
struct work_struct bg_scan_update;
struct sk_buff_head rx_q;
struct sk_buff_head raw_q;
struct sk_buff_head cmd_q;