hle(dstorage): preserve sequence order across held page-destination auto-submits #554
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#554
Loading…
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?
@Sheffy007 on GitHub · 2026-11-28 03:08 UTC · original
Bug
In
crates/victory-hle/src/modules/dstorage.rs,Lanes::submit_as(id, false)(triggered when a queue reaches half capacity before an explicitSubmit) holdsPAGE_DESTINATIONreads and anyCommand::Statusbehind them inlane.heldwithout assigning sequence numbers (seq), while immediately assigningseqnumbers to plain (PAGE_DESTINATION == 0) reads.When a second auto-submit (or more plain reads) runs on the same queue before
Submit():Status(S0)receiveseqnumbers smaller than theseqlater assigned toS0duringSubmit().S0then waits on reads enqueued after it and consumes any failureHRESULTbelonging to a laterStatus(S1), causingS0to fail andS1to falsely reportS_OK.PAGE_DESTINATIONreads are appended behind later unstarted plain reads inlane.readsonSubmit(), starting after later reads on the same queue.Plan
seqnumbers in enqueue order when commands first leavelane.unsubmittedinsubmit_as, keeping(u64, Command)inlane.heldand keyinglane.reads/lane.statusesbyseq(BTreeMap, matchingrunningandfailures).Lane::flushas well so no status completes ahead of an earlier held read.PAGE_DESTINATIONbatches.Refs #460
@Sheffy007 on GitHub · 2026-11-28 03:08 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-28 03:09 UTC · original
Claimed by @Sheffy007. Open a draft pull request with
Refs #550in its description within 24 hours, or the claim expires.