mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
Bluetooth: btusb: Preserve event and ACL packet ordering
When force_poll_sync is enabled, commit800fe5ec30("Bluetooth: btusb: Add support for queuing during polling interval") defers ACL delivery to the RX worker. The event path currently wakes that worker before delivering the event, so queued ACL data can reach HCI first. Deliver the event before waking the worker. This preserves the intended event-first ordering and the event callback's return value. Fixes:800fe5ec30("Bluetooth: btusb: Add support for queuing during polling interval") Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
f2cee6e2aa
commit
fa96916cfd
|
|
@ -1311,13 +1311,16 @@ static inline void btusb_free_frags(struct btusb_data *data)
|
|||
static int btusb_recv_event(struct hci_dev *hdev, struct sk_buff *skb)
|
||||
{
|
||||
struct btusb_data *data = hci_get_drvdata(hdev);
|
||||
int err;
|
||||
|
||||
err = data->recv_event(hdev, skb);
|
||||
|
||||
if (data->intr_interval) {
|
||||
/* Trigger dequeue immediately if an event is received */
|
||||
schedule_delayed_work(&data->rx_work, 0);
|
||||
}
|
||||
|
||||
return data->recv_event(hdev, skb);
|
||||
return err;
|
||||
}
|
||||
|
||||
static int btusb_recv_intr(struct btusb_data *data, void *buffer, int count)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user