DirectStorage: a refused request that is cancelled is not a failure #1127
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1127
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1127/head"
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?
@emirduran707 on GitHub · 2026-11-24 12:10 UTC · original
emirduran707:dstorage-cancel-refused→main· +89 −8 · 1 files · 1 commits · merged 2026-11-24 15:56 UTCA request that fails a check in
EnqueueRequest(source type, file handle, destination or source page array) goes into the queue asEntry::Refused, which had no sequence number.CancelRequestsWithTagremoved only pendingEntry::Requestentries, and the worker checked the cancel rules only for those. So a refused request was reported however the title cancelled it:FailureCountand the first failure in the error record;DirectStorage's documentation for
CancelRequestsWithTag: "A cancelled request is not counted as a failure in either IDStorageStatusArray or DSTORAGE_ERROR_RECORD."What is in it
crates/xcl/src/hle/dstorage.rs:enqueue_refused, throughenqueue_numbered, whichenqueue_requestnow uses too);CancelRequestsWithTagdrops pending ones with a matching tag;a_refused_request_that_is_cancelled_is_no_failure:E_SOURCE_TYPE, with the worker held so one is already submitted when the cancel comes;E_SOURCE_TYPE.Tested
x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug for the suite, release for the runs.cargo test --workspace -- --test-threads=4at66660bd: 742 passed, 0 failed, 41 ignored; noSKIPPEDlines.Regression run
The
gpu:line names a virtual display adapter of this machine (what #281 / #282 / #285 fix); XCL's log namesbackend 'real' – AMD Radeon RX 9060 XT (16188 MiB VRAM).main:
PR:
Not tested
AI use
🤖 Generated with Claude Code
@thehollowedone on GitHub · 2026-11-24 12:24 UTC · original
Independent Windows 11 verification at 66660bd, Rust 1.99.1 MSVC. The offline workspace build and all 15 stock DirectStorage unit tests passed.
A separate fixture cancelled one submitted and one pending refused request. Both status slots completed successfully, the error event stayed unsignaled, and a neighboring valid memory copy returned the expected bytes. A later refused request with the same tag reported
E_SOURCE_TYPE, signaled the event, and was the sole entry in the error record. Retrieving it reset the event. This passed in three separate processes.Synthetic coverage only. AI-assisted. Codex (GPT-6) added and ran the scratch fixture.
@fromthemoonx on GitHub · 2026-11-24 12:33 UTC · original
NVIDIA run with the whole suite, since Not tested lists NVIDIA; the earlier check here ran the DirectStorage tests and a fixture.
Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug66660bd9478c789959df1e0d3342f1081f778610, which is on currentmain47efa2e(so also the merged result):cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored. The newdstorage::tests::a_refused_request_that_is_cancelled_is_no_failurepassed.dstorage.rsas onmainplus only the new test, it fails at the first check:the cancelled submitted request is no failure,left: -1994129381(an error HRESULT),right: 0.hle::dstoragetests, 10 runs: 10 of 10 passed (15 each)e2e, 3 runs: 3 of 3 passed. The test title's DirectStorage step submits requests through the changed queue (DirectStorage: request #0 … #1in its log).XCL_D3D12_DEBUG=1run logs the same set of debug-layer errors and warnings as onmain.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested
AI use