]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: ublk: add stress test for per io daemons
authorUday Shankar <ushankar@purestorage.com>
Thu, 29 May 2025 23:47:17 +0000 (17:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 May 2025 20:38:53 +0000 (14:38 -0600)
commit17574aa2a06b1f5bc447433ceaaa3df3543cc632
treeb7d7bfa1510d07a0f9e1b88b911e980ac2626c0e
parent236918d3e9ac45d593c2f74e1df598483a508d2f
selftests: ublk: add stress test for per io daemons

Add a new test_stress_06 for the per io daemons feature. This is just a
copy of test_stress_01 with the per_io_tasks flag added, with varying
amounts of nthreads. This test is able to reproduce a panic which was
caught manually during development [1]; in the current version of this
patch set, it passes.

Note that this commit also makes all stress tests using the
run_io_and_remove helper more stressful by additionally exercising the
batch submit (queue_rqs) path.

[1] https://lore.kernel.org/linux-block/aDgwGoGCEpwd1mFY@fedora/

Suggested-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Link: https://lore.kernel.org/r/20250529-ublk_task_per_io-v8-8-e9d3b119336a@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/test_common.sh
tools/testing/selftests/ublk/test_stress_06.sh [new file with mode: 0755]