Skip to content

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Jan 26, 2026

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

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 26, 2026

Upstream branch: d91a46d
series: https://patchwork.kernel.org/project/linux-block/list/?series=1047138
version: 1

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 27, 2026

Upstream branch: fcb70a5
series: https://patchwork.kernel.org/project/linux-block/list/?series=1047138
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1047138=>linus-master branch from 293ecf1 to 88e2348 Compare January 27, 2026 10:07
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from b44af19 to 483aa43 Compare January 29, 2026 00:24
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: 8dfce89
series: https://patchwork.kernel.org/project/linux-block/list/?series=1047138
version: 1

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]>
@blktests-ci blktests-ci bot force-pushed the series/1047138=>linus-master branch from 88e2348 to fe66a23 Compare January 29, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants