Skip to content

fix(core): prevent busy-loop in complete handler when HW stalls#16

Closed
daeyeong-XCENA wants to merge 1 commit into
mainfrom
dylee/fix/complete-handler-busy-loop
Closed

fix(core): prevent busy-loop in complete handler when HW stalls#16
daeyeong-XCENA wants to merge 1 commit into
mainfrom
dylee/fix/complete-handler-busy-loop

Conversation

@daeyeong-XCENA
Copy link
Copy Markdown
Collaborator

📌 PR 요약

  • device가 completion을 생성하지 않을 때 complete handler에서 발생하는 busy-loop을 방지

📝 상세 내용

  • wait_count > 0이지만 is_popable이 false인 경우, swait 조건이 이미 true라 sleep 없이 루프가 반복되는 문제 수정
  • submit handler의 !pushed_any 패턴과 동일하게 !popped_any sleep guard 추가
  • device 장애 시 soft lockup(~20초 watchdog) 발생 가능성 제거

🔗 관련 이슈(선택)

🌿 관련 PR(선택)

🌿 관련 Branch(선택)

📦 Release Note (자동 생성용 / 영문 작성)

NEW

CHANGED

FIXED

IMPORTANT NOTES

When wait_count > 0 but the device produces no completions,
the swait condition is already true so the handler loops without
sleeping. Add a sleep guard matching the submit handler pattern.
@daeyeong-XCENA daeyeong-XCENA deleted the dylee/fix/complete-handler-busy-loop branch March 26, 2026 04:37
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.

1 participant