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

Manually merged
github merged 1 commit from github-bot/gh-2331 into main 2026-11-30 14:17:12 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 12:03 UTC · original
101Leafy:nv/dstorage-poll-wait → main · +68 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

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.

**@⁠101Leafy** on GitHub · 2026-11-29 12:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2331) `101Leafy:nv/dstorage-poll-wait` → `main` · +68 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:05:35 +00:00
github manually merged commit ad4c3f5af7 into main 2026-11-30 14:17:12 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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