Skip to content

Commit da12597

Browse files
Ming Leiaxboe
authored andcommitted
selftests: ublk: cover PER_IO_DAEMON in more stress tests
We have stress_03, stress_04 and stress_05 for checking new feature vs. stress IO & device removal & ublk server crash & recovery, so let the three existing stress tests cover PER_IO_DAEMON. Then stress_06 can be removed, since the same test function is included in stress_03. Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Uday Shankar <[email protected]> [axboe: remove test_stress_06.sh from Makefile too] Signed-off-by: Jens Axboe <[email protected]>
1 parent 08652bd commit da12597

File tree

5 files changed

+22
-37
lines changed

5 files changed

+22
-37
lines changed

tools/testing/selftests/ublk/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ TEST_PROGS += test_stress_02.sh
3838
TEST_PROGS += test_stress_03.sh
3939
TEST_PROGS += test_stress_04.sh
4040
TEST_PROGS += test_stress_05.sh
41-
TEST_PROGS += test_stress_06.sh
4241

4342
TEST_GEN_PROGS_EXTENDED = kublk
4443

tools/testing/selftests/ublk/test_stress_03.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,13 @@ if _have_feature "AUTO_BUF_REG"; then
4141
fi
4242
wait
4343

44+
if _have_feature "PER_IO_DAEMON"; then
45+
ublk_io_and_remove 8G -t null -q 4 --auto_zc --nthreads 8 --per_io_tasks &
46+
ublk_io_and_remove 256M -t loop -q 4 --auto_zc --nthreads 8 --per_io_tasks "${UBLK_BACKFILES[0]}" &
47+
ublk_io_and_remove 256M -t stripe -q 4 --auto_zc --nthreads 8 --per_io_tasks "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" &
48+
ublk_io_and_remove 8G -t null -q 4 -z --auto_zc --auto_zc_fallback --nthreads 8 --per_io_tasks &
49+
fi
50+
wait
51+
4452
_cleanup_test "stress"
4553
_show_result $TID $ERR_CODE

tools/testing/selftests/ublk/test_stress_04.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ if _have_feature "AUTO_BUF_REG"; then
3838
ublk_io_and_kill_daemon 256M -t stripe -q 4 --auto_zc "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" &
3939
ublk_io_and_kill_daemon 8G -t null -q 4 -z --auto_zc --auto_zc_fallback &
4040
fi
41+
42+
if _have_feature "PER_IO_DAEMON"; then
43+
ublk_io_and_kill_daemon 8G -t null -q 4 --nthreads 8 --per_io_tasks &
44+
ublk_io_and_kill_daemon 256M -t loop -q 4 --nthreads 8 --per_io_tasks "${UBLK_BACKFILES[0]}" &
45+
ublk_io_and_kill_daemon 256M -t stripe -q 4 --nthreads 8 --per_io_tasks "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" &
46+
ublk_io_and_kill_daemon 8G -t null -q 4 --nthreads 8 --per_io_tasks &
47+
fi
4148
wait
4249

4350
_cleanup_test "stress"

tools/testing/selftests/ublk/test_stress_05.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,12 @@ if _have_feature "AUTO_BUF_REG"; then
6969
done
7070
fi
7171

72+
if _have_feature "PER_IO_DAEMON"; then
73+
ublk_io_and_remove 8G -t null -q 4 --nthreads 8 --per_io_tasks -r 1 -i "$reissue" &
74+
ublk_io_and_remove 256M -t loop -q 4 --nthreads 8 --per_io_tasks -r 1 -i "$reissue" "${UBLK_BACKFILES[0]}" &
75+
ublk_io_and_remove 8G -t null -q 4 --nthreads 8 --per_io_tasks -r 1 -i "$reissue" &
76+
fi
77+
wait
78+
7279
_cleanup_test "stress"
7380
_show_result $TID $ERR_CODE

tools/testing/selftests/ublk/test_stress_06.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)