mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 01:52:32 -04: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
546 B
Bash
Executable File
28 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh
|
|
|
|
TID="loop_03"
|
|
ERR_CODE=0
|
|
|
|
if ! _have_program fio; then
|
|
exit "$UBLK_SKIP_CODE"
|
|
fi
|
|
|
|
_prep_test "loop" "write and verify over zero copy"
|
|
|
|
backfile_0=$(_create_backfile 256M)
|
|
dev_id=$(_add_ublk_dev -t loop -z "$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
|