Skip to content

fix: correct timeout check logic for IoRing::jobsToProc#404

Merged
KuribohG merged 1 commit into
deepseek-ai:mainfrom
dxlog0:user/zdx/fix_bug
Mar 30, 2026
Merged

fix: correct timeout check logic for IoRing::jobsToProc#404
KuribohG merged 1 commit into
deepseek-ai:mainfrom
dxlog0:user/zdx/fix_bug

Conversation

@dxlog0

@dxlog0 dxlog0 commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Fix a logic error in IoRing's timeout check mechanism. The issue was that lastCheck_ was being assigned at the same time as now, making the !lastCheck_ condition always false. This prevented the timeout waiting logic from working correctly when ioDepth is negative.

The fix separates the time acquisition from the state assignment, ensuring that the first-time check works properly and the timeout mechanism functions as intended.

This change affects the getJobs() method in src/fuse/IoRing.cc, specifically the batch processing logic when ioDepth is negative.

@KuribohG KuribohG self-requested a review March 30, 2026 02:25
@KuribohG KuribohG merged commit 593cec5 into deepseek-ai:main Mar 30, 2026
1 check 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.

3 participants