Repository navigation
[upstream #1127] DirectStorage: a refused request that is cancelled is not a failure - #34
Merged
Merged
Conversation
A request that fails a check in EnqueueRequest (source type, file handle, destination page array, ...) went into the queue as Entry::Refused, which had no sequence number. CancelRequestsWithTag removed only pending Entry::Request entries, and the worker checked the cancel rules only for those, so a refused request was reported however the title cancelled it: its HRESULT in the next status entry, a FailureCount and first failure in the error record, and the error event. DirectStorage's documentation: "a cancelled request is not counted as a failure in either IDStorageStatusArray or DSTORAGE_ERROR_RECORD". Refused entries now get a sequence number from the same counter as requests (enqueue_refused / enqueue_numbered), CancelRequestsWithTag drops pending ones with a matching tag, and the worker skips submitted ones the cancel rules cover. A refused request with another tag, or enqueued after the cancel, still fails as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A 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=4at 66660bd: 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
Mirror of xcl-dev#1127 (auto-synced, do not edit).