DirectStorage: a poll of a pending status entry waits a little for it to be written (VICTORY_DSTORAGE_POLL_WAIT_US) #2331
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2331"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T12:03:15Z.
The title polls status array entries and sleeps 1 ms between polls. A batch that lands just after a poll is only seen at the next one.
VICTORY_DSTORAGE_POLL_WAIT_US=n (0 by default, at most 2000) lets a poll of a pending entry wait up to n microseconds on a condition variable that is woken each time a status entry is written. With the switch at 0 nothing changes and no wake-ups are sent.
A test writes an entry from another thread during the wait and checks the poll sees it.