diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-02-15 18:07:07 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-03-02 12:49:01 +0000 |
| commit | e0e1e9e083097383bcebf0b6cf65af46653e2f73 (patch) | |
| tree | f605213b0c2897f54d151792739473c4fd93ceb4 /sys/dev/qlxgbe/ql_isr.c | |
| parent | 2244269424ae439f0234d238c2674a95c0b459a3 (diff) | |
libusb: dequeue next transfer on completion to prevent stallsstable/14
The transfer proxy callbacks (bulk/interrupt, control, isochronous)
only called libusb10_submit_transfer_sub() in the START path to
pipeline the second kernel transfer slot. On completion or error,
no attempt was made to dequeue the next pending transfer from
tr_head onto the now-free slot.
When more than two async transfers were submitted on the same
endpoint, the third (and subsequent) transfers would remain stuck
on tr_head indefinitely, since no completion ever triggered their
submission. This caused a protocol-level deadlock in applications
like adb that submit header + payload + zero-length terminator as
three separate bulk transfers in sequence.
Fix by calling libusb10_submit_transfer_sub() after every
libusb10_complete_transfer() in all three proxy callbacks.
MFC After: 2 weeks
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D55289
(cherry picked from commit 38c18332642500fdfe075a82f88e033f6673a53f)
Diffstat (limited to 'sys/dev/qlxgbe/ql_isr.c')
0 files changed, 0 insertions, 0 deletions
