selftests: ublk: improve I/O ordering test with bpftrace#515
Open
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
Open
selftests: ublk: improve I/O ordering test with bpftrace#515blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
Conversation
Author
|
Upstream branch: d91a46d |
1dff21b to
b44af19
Compare
Author
|
Upstream branch: fcb70a5 |
293ecf1 to
88e2348
Compare
b44af19 to
483aa43
Compare
Author
|
Upstream branch: 8dfce89 |
88e2348 to
fe66a23
Compare
483aa43 to
9d3c6de
Compare
Author
|
Upstream branch: de0674d |
fe66a23 to
cf01ff7
Compare
9d3c6de to
7c2ae0a
Compare
Author
|
Upstream branch: f14faaf |
The in-tree approach requires sequential IO maintained in the whole IO stack, which is too strict and may cause false positive because of IO reorder caused by block layer core code, and generic_01 only covers IO order in ublk dispatch code path. Rework test_generic_01 to verify that ublk dispatch doesn't reorder I/O by comparing request start order with completion order using bpftrace. The bpftrace script now: - Tracks each request's start sequence number in a map keyed by sector - On completion, verifies the request's start order matches expected completion order - Reports any out-of-order completions detected The test script: - Wait bpftrace BEGIN code block is run - Pins fio to CPU 0 for deterministic behavior - Uses block_io_start and block_rq_complete tracepoints - Checks bpftrace output for reordering errors Reported-and-tested-by: Alexander Atanasov <[email protected]> Signed-off-by: Ming Lei <[email protected]>
cf01ff7 to
2c994a0
Compare
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.
Pull request for series with
subject: selftests: ublk: improve I/O ordering test with bpftrace
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1047138