Skip to content

Prevent busy-loop when tcmulib_processing_start fails#16

Merged
adam-rl merged 1 commit into
mainfrom
adam/fix-cpu-wedged
Mar 13, 2026
Merged

Prevent busy-loop when tcmulib_processing_start fails#16
adam-rl merged 1 commit into
mainfrom
adam/fix-cpu-wedged

Conversation

@adam-rl

@adam-rl adam-rl commented Mar 13, 2026

Copy link
Copy Markdown

When tcmulib_processing_start fails to read the UIO device, it logs an error but produces no commands. Without yielding, the event loop spins at 100% CPU, starving the master netlink loop and preventing new devices from being configured.

Sleep 1ms when no commands are available to break the spin.

When tcmulib_processing_start fails to read the UIO device, it logs an
error but produces no commands. Without yielding, the event loop spins
at 100% CPU, starving the master netlink loop and preventing new devices
from being configured.

Sleep 1ms when no commands are available to break the spin.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adam-rl
adam-rl requested a review from gautam-rl March 13, 2026 22:32
@adam-rl
adam-rl merged commit 98a9c3d into main Mar 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants