Commit fac9a602 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Marcel Holtmann

Bluetooth: Remove deprecated create_singlethread_workqueue

The workqueue "workqueue" queues multiple work items viz &qca->ws_awake_rx
&qca->ws_rx_vote_off, &qca->ws_awake_device, &qca->ws_tx_vote_off which
require strict execution ordering. Hence, an ordered dedicated workqueue
has been used to replace the deprecated create_singlethread_workqueue
instance.

WQ_MEM_RECLAIM has not been set since the driver is not being used on a
memory reclaim path.
Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f4cdbb3f
...@@ -397,7 +397,7 @@ static int qca_open(struct hci_uart *hu) ...@@ -397,7 +397,7 @@ static int qca_open(struct hci_uart *hu)
skb_queue_head_init(&qca->txq); skb_queue_head_init(&qca->txq);
skb_queue_head_init(&qca->tx_wait_q); skb_queue_head_init(&qca->tx_wait_q);
spin_lock_init(&qca->hci_ibs_lock); spin_lock_init(&qca->hci_ibs_lock);
qca->workqueue = create_singlethread_workqueue("qca_wq"); qca->workqueue = alloc_ordered_workqueue("qca_wq", 0);
if (!qca->workqueue) { if (!qca->workqueue) {
BT_ERR("QCA Workqueue not initialized properly"); BT_ERR("QCA Workqueue not initialized properly");
kfree(qca); kfree(qca);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment