mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00

Add test test_generic_02.sh for covering IO dispatch order in case of MQ. Especially we just support ->queue_rqs() which may affect IO dispatch order. Add test_loop_05.sh and test_stripe_03.sh for covering MQ. Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20250327095123.179113-11-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
28 lines
536 B
Bash
Executable file
28 lines
536 B
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh
|
|
|
|
TID="loop_01"
|
|
ERR_CODE=0
|
|
|
|
if ! _have_program fio; then
|
|
exit "$UBLK_SKIP_CODE"
|
|
fi
|
|
|
|
_prep_test "loop" "write and verify test"
|
|
|
|
backfile_0=$(_create_backfile 256M)
|
|
|
|
dev_id=$(_add_ublk_dev -t loop "$backfile_0")
|
|
_check_add_dev $TID $? "${backfile_0}"
|
|
|
|
# run fio over the ublk disk
|
|
_run_fio_verify_io --filename=/dev/ublkb"${dev_id}" --size=256M
|
|
ERR_CODE=$?
|
|
|
|
_cleanup_test "loop"
|
|
|
|
_remove_backfile "$backfile_0"
|
|
|
|
_show_result $TID $ERR_CODE
|