Skip to contentSkip to conversation

blktest: remove instances of null_blk queue_mode=1

PATCH Applied Jens Axboe 2 participants 3 messages Oct 25, 2018 Block layer

lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 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
index 715c4e59c514..cea29beaf062 100755
@@ -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
index 93d67c98e159..e2ecf978af5f 100644
@@ -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
index facb7c2be260..27c74bec2337 100644
@@ -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
index b053af45adb0..b0739f72e46d 100755
@@ -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
index a2f376d979e2..3216d0c4b5c1 100644
@@ -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
index 7600389291af..3cff4189c711 100644
@@ -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
#1 lore raw
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.

Thanks, applied this squashed it with the one removing block/022.

author maintainer
#2 lore raw
Quoted 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.

Thanks, applied this squashed it with the one removing block/022.

Thanks Omar!

Signature · 1 line
Jens Axboe