Commit d2d1fc7
committed
Bluetooth: Host: Don't call user callback from TX thread
We invoked user callbacks from a net_buf_unref() inside the HCI driver.
This is not OK now that tx_processor is a non-blocking task on bt_taskq.
Instead defer the net_buf destruction to the system workqueue.
This was detected because the following test was failing:
tests/bsim/bluetooth/ll/throughput/tests_scripts/gatt_write.sh
Signed-off-by: Aleksander Wasaznik <[email protected]>1 parent 32ffc85 commit d2d1fc7
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
| 257 | + | |
253 | 258 | | |
254 | 259 | | |
255 | 260 | | |
| |||
278 | 283 | | |
279 | 284 | | |
280 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
281 | 296 | | |
282 | 297 | | |
283 | 298 | | |
| |||
0 commit comments