mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #25] [CLOSED] fix(ublk): stop blocking tokio workers while waiting for ublk device nodes #123
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/25
Author: @hemildesai
Created: 7/28/2026
Status: ❌ Closed
Base:
main← Head:fix/ublk-async-device-wait📝 Commits (1)
3ed4b53fix(ublk): stop blocking tokio workers while waiting for ublk device nodes📊 Changes
3 files changed (+85 additions, -27 deletions)
View changed files
📝
storage/ublk-daemon/src/main.rs(+10 -1)📝
storage/ublk-daemon/src/server.rs(+14 -5)📝
storage/ublk/src/lib.rs(+61 -21)📄 Description
Problem
wait_for_ublk_devsleeps withstd::thread::sleepand is called from the ublk daemon's async device-creation paths without.await, parking a tokio worker for the whole wait:The daemon runs a hardcoded 4-worker runtime (
worker_threads(4)), so concurrent cold device creations are capped at 4, each holding its worker for at least the 10 ms first retry interval.Note
This PR was opened in error against a repository we do not own, and has been closed. Retained only for the discussion thread.
Per review feedback, the correct fix is to remove the wait entirely rather than make it async: after
add_dev/start_devreturn,ublk_ctrl_start_dev -> device_add_disk -> device_addhas already created the device node, so there is nothing to wait for.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.