Bluetooth: Use req_workqueue for hci_request operations
This patch converts work assignment relying on hci_request() from the system-global work queue to the per-HCI device specific work queue (hdev->req_workqueue) intended for hci_request() related tasks. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:

committed by
Gustavo Padovan

parent
6ead1bbc38
commit
1920257316
@@ -812,9 +812,9 @@ static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data,
|
||||
}
|
||||
|
||||
if (cp->val)
|
||||
schedule_work(&hdev->power_on);
|
||||
queue_work(hdev->req_workqueue, &hdev->power_on);
|
||||
else
|
||||
schedule_work(&hdev->power_off.work);
|
||||
queue_work(hdev->req_workqueue, &hdev->power_off.work);
|
||||
|
||||
err = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user