Files
RedBear-OS/drivers/usb
Red Bear OS 81c366359d USB: P2 crossbeam bounded channels — prevent OOM under USB load
IMPROVEMENT-PLAN.md §10.2 item 4: medium priority fix.

Changed two crossbeam channels from unbounded to bounded:
- irq_reactor: 1024 events (transfer/command completions)
- device_enumerator: 64 events (port enumeration requests)

Unbounded channels can grow without limit if the consumer
(IRQ reactor) falls behind, causing OOM under heavy USB traffic.
Bounded channels provide natural backpressure — the sender
(scheme handler) blocks when the channel is full, causing
the USB client to back off.

Cross-referenced with Linux 7.1 xhci-ring.c producer/consumer
pattern where transfer rings are bounded by hardware limits.
2026-07-08 00:54:40 +03:00
..