We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4f5d4 commit 54338e6Copy full SHA for 54338e6
subsys/bluetooth/host/att.c
@@ -285,14 +285,15 @@ static void att_tx_destroy_work_handler(struct k_work *work)
285
}
286
287
if (!sys_slist_is_empty(&tx_destroy_queue)) {
288
- k_work_submit(&att_tx_destroy_work);
+ k_work_submit_to_queue(bt_workq_chosen, &att_tx_destroy_work);
289
290
291
292
static void att_tx_destroy(struct net_buf *buf)
293
{
294
+ /* We need to invoke `att_on_sent_cb` which may block. Defer to bt_workq. */
295
net_buf_slist_put(&tx_destroy_queue, buf);
296
+ k_work_submit_to_queue(bt_workq_chosen, &att_tx_destroy_work); /* att_tx_destroy_work_handler */
297
298
299
NET_BUF_POOL_DEFINE(att_pool, CONFIG_BT_ATT_TX_COUNT,
0 commit comments