-
Notifications
You must be signed in to change notification settings - Fork 0
selftests: ublk: improve I/O ordering test with bpftrace #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linus-master_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: d91a46d |
1dff21b to
b44af19
Compare
|
Upstream branch: fcb70a5 |
293ecf1 to
88e2348
Compare
b44af19 to
483aa43
Compare
|
Upstream branch: 8dfce89 |
88e2348 to
fe66a23
Compare
483aa43 to
9d3c6de
Compare
|
Upstream branch: de0674d |
fe66a23 to
cf01ff7
Compare
9d3c6de to
7c2ae0a
Compare
|
Upstream branch: f14faaf |
cf01ff7 to
2c994a0
Compare
7c2ae0a to
54294d6
Compare
|
Upstream branch: b7ff715 |
2c994a0 to
6800aec
Compare
54294d6 to
eb49f7b
Compare
|
Upstream branch: e7aa572 |
6800aec to
ba747b1
Compare
eb49f7b to
30e5c22
Compare
|
Upstream branch: 05f7e89 |
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 <alex@zazolabs.com> Signed-off-by: Ming Lei <ming.lei@redhat.com>
ba747b1 to
9aa45fb
Compare
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