DirectStorage: a poll of a pending status entry waits a little for it to be written (VICTORY_DSTORAGE_POLL_WAIT_US) #2331

Merged
101Leafy merged 1 commit from upstream-pr/2331 into main 2026-11-30 14:12:03 +00:00
101Leafy commented 2026-11-29 12:03:15 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550513594 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2331). Originally posted by [101Leafy](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!2331
No description provided.