selftests: ublk: add stress test for covering IO vs. killing ublk server
authorMing Lei <ming.lei@redhat.com>
Mon, 3 Mar 2025 12:43:20 +0000 (20:43 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Mar 2025 22:24:42 +0000 (16:24 -0600)
commitaf83ccc7db3a3cb48bc8e9f622500a303e06e3c9
treec10893601fe6e1944c62545b6bf44ea47839f2f2
parentc60ac48eab6107445ea88f13f64af3d0766f61d8
selftests: ublk: add stress test for covering IO vs. killing ublk server

Add stress_test_01 for running IO vs. killing ublk server, so io_uring exit &
cancel code path can be covered, same with ublk's cancel code path.

Especially IO buffer lifetime is one big thing for ublk zero copy, the added
test can verify if this area works as expected.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250303124324.3563605-11-ming.lei@redhat.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_01.sh
tools/testing/selftests/ublk/test_stress_02.sh [new file with mode: 0755]