HLE: implement DirectStorage CancelRequestsWithTag and Query queue slots #2084
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2086"
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 Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T04:32:46Z.
Fixes #889.
Summary
0x38,CancelRequestsWithTag): drop unsubmitted and queued-not-yet-started read requests matching(request.tag & mask) == value, flush newly unblocked status entries without recording a failure, and wake full-queue waiters.0x58,Query): populate the0x20-byte 2020DSTORAGE_QUEUE_INFOlayout from the queue's creation description (retaining an ownedCStringforname) and live empty / auto-submit slot counts, reporting(0, 0)once closed and tolerating null output pointers.Testing
queue_info_tracks_layout_counts_and_closed_stateandcancel_by_tag_drops_matching_reads_without_errorincrates/victory-hle/src/modules/dstorage.rs.cargo test -p victory-hle --locked,cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo xtask policy.Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T04:36:18Z.
Review: APPROVED
Verified locally merged onto
origin/main(940d32f, Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-hle --lib dstorage::— 16 passed, 0 failed (includingqueue_info_tracks_layout_counts_and_closed_stateand the newCancelRequestsWithTagtests)cargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— ok (183 files ok)Clean implementation of DirectStorage
CancelRequestsWithTagandQueryqueue slots with solid unit test coverage. Looks good.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T05:02:18Z.
Review: COMMENTED
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
DirectStorage CancelRequestsWithTag + Query queue depth — completes the cancellation surface; check the tag-matching semantics against the real API (cancels ALL matching, not just queued).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T04:36:00Z.
Triage verdict — Keep Query and cancellation, share the auto-submit threshold (
c931aac)Evidence
Querycurrently reports four entries until auto-submit on an idle capacity-eight queue. That matches the current enqueue policy. #2074 proposes five for the same queue, so taking both changes as written could makeQuerydisagree with the enqueue path. Query calculation · Idle-count assertion · #2074 boundary evidenceChecks and limits
Next step
This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Dathinel on 2026-11-25T04:39:50Z.
I ran the status-only check suggested above. Before each enqueue I called
Query, then enqueued a new status entry and checked whether the first status had completed. No reads or explicitSubmit.At capacity 8 the combined tree reports
4, 3, 2, 1, 0before the five enqueues; the first status is still pending when the count reaches zero. Using #2074'slane.submits_at()inQuerymade every step match for all four capacities. With the four countdown expectations updated in the Query and cancellation tests, all 17 DirectStorage module tests passed.Tested on Windows at
c931aac5and2ced7715. This verifies reporting against the runtime's actual behavior for either merge decision. AI-assisted.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T05:00:27Z.
Updated in
45a34efb— thanks @jeremygold02. FactoredLane::submits_atsoqueue()andQueryshare a single auto-submit threshold calculation, and added status-onlyenqueue_statuscountdown/auto-submit assertions across capacities2,4, and8.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:33:14Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-hle/src/modules/dstorage.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs-work) was for an older state ofmain.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T16:13:51Z.
Closing per triage feedback: the title only calls queue slots
0x18,0x20,0x30, and0x40, so keepingmissing::<7>(0x38) andmissing::<11>(0x58) avoids committing to an unverifiedQueueInfolayout (0x20vs0x28bytes aroundQueueDesc) until a real call site is observed.Pull request closed