blktest: remove instances of null_blk queue_mode=1
Jens Axboe
maintainerPATCH v2 1/1 blktest: remove instances of null_blk queue_mode=1
This is no longer supported in recent kernels, get rid of any testing of queue_mode=1. queue_mode=1 tested the legacy IO path, which is going away completely. As such, there's no point in doing anymore testing with it.
---
Replaces the two previous patches - covers 024 as well, and folds the other two.
tests/block/017 +13 -17
@@ -26,27 +26,23 @@ show_inflight() { test() { echo "Running ${TEST_NAME}" - for ((queue_mode = 1; queue_mode <= 2; queue_mode++)) do - echo "queue mode $queue_mode" + if ! _init_null_blk queue_mode=2 irqmode=2 \ + completion_nsec=500000000; then + return 1 + fi - if ! _init_null_blk queue_mode="$queue_mode" irqmode=2 \ - completion_nsec=500000000; then - continue - fi + dd if=/dev/nullb0 of=/dev/null bs=4096 iflag=direct count=1 status=none & + sleep 0.1 + show_inflight - dd if=/dev/nullb0 of=/dev/null bs=4096 iflag=direct count=1 status=none & - sleep 0.1 - show_inflight + dd if=/dev/zero of=/dev/nullb0 bs=4096 oflag=direct count=1 status=none & + sleep 0.1 + show_inflight - dd if=/dev/zero of=/dev/nullb0 bs=4096 oflag=direct count=1 status=none & - sleep 0.1 - show_inflight + wait + show_inflight - wait - show_inflight - - _exit_null_blk - done + _exit_null_blk echo "Test complete" }
tests/block/017.out +0 -14
@@ -1,18 +1,4 @@ Running block/017 -queue mode 1 -sysfs inflight reads 1 -sysfs inflight writes 0 -sysfs stat 1 -diskstats 1 -sysfs inflight reads 1 -sysfs inflight writes 1 -sysfs stat 2 -diskstats 2 -sysfs inflight reads 0 -sysfs inflight writes 0 -sysfs stat 0 -diskstats 0 -queue mode 2 sysfs inflight reads 1 sysfs inflight writes 0 sysfs stat 1
tests/block/018 +19 -23
56 lines not on this page · raw message
tests/block/018.out +0 -10
@@ -1,14 +1,4 @@ Running block/018 -queue mode 1 -read 0 s -write 0 s -read 1 s -write 0 s -read 1 s -write 1 s -read 2 s -write 3 s -queue mode 2 read 0 s write 0 s read 1 s
tests/block/023 +1 -1
@@ -19,7 +19,7 @@ test() { echo "Running ${TEST_NAME}" local queue_mode - for ((queue_mode = 0; queue_mode <= 2; queue_mode++)); do + for queue_mode in 0 2; do if _init_null_blk gb=1 queue_mode="$queue_mode"; then echo "Queue mode $queue_mode" dd if=/dev/nullb0 of=/dev/null iflag=direct bs=64k status=none
tests/block/023.out +0 -1
@@ -1,5 +1,4 @@ Running block/023 Queue mode 0 -Queue mode 1 Queue mode 2 Test complete
tests/block/024 +23 -27
64 lines not on this page · raw message
tests/block/024.out +0 -10
@@ -1,14 +1,4 @@ Running block/024 -queue mode 1 -read 0 s -write 0 s -read 1 s -write 0 s -read 1 s -write 1 s -read 2 s -write 3 s -queue mode 2 read 0 s write 0 s read 1 s
Signature · 1 line
Jens Axboe
Omar Sandoval
AppliedQuoted 6 lines · Jens Axboe
This is no longer supported in recent kernels, get rid of any testing of queue_mode=1. queue_mode=1 tested the legacy IO path, which is going away completely. As such, there's no point in doing anymore testing with it.
Signed-off-by Jens Axboe <[email protected]>
Thanks, applied this squashed it with the one removing block/022.
Jens Axboe
maintainerQuoted 9 lines · Omar Sandoval
Quoted 6 lines · Jens Axboe
This is no longer supported in recent kernels, get rid of any testing of queue_mode=1. queue_mode=1 tested the legacy IO path, which is going away completely. As such, there's no point in doing anymore testing with it.
Signed-off-by Jens Axboe <[email protected]>Thanks, applied this squashed it with the one removing block/022.
Thanks Omar!
Signature · 1 line
Jens Axboe