|
Revision tags: v6.15, v6.15-rc7, v6.15-rc6, v6.15-rc5 |
|
| #
730d8379 |
| 29-Apr-2025 |
Ming Lei <[email protected]> |
selftests: ublk: fix UBLK_F_NEED_GET_DATA
Commit 57e13a2e8cd2 ("selftests: ublk: support user recovery") starts to support UBLK_F_NEED_GET_DATA for covering recovery feature, however the ublk utilit
selftests: ublk: fix UBLK_F_NEED_GET_DATA
Commit 57e13a2e8cd2 ("selftests: ublk: support user recovery") starts to support UBLK_F_NEED_GET_DATA for covering recovery feature, however the ublk utility implementation isn't done correctly.
Fix it by supporting UBLK_F_NEED_GET_DATA correctly.
Also add test generic_07 for covering UBLK_F_NEED_GET_DATA.
Reviewed-by: Caleb Sander Mateos <[email protected]> Fixes: 57e13a2e8cd2 ("selftests: ublk: support user recovery") Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
|
Revision tags: v6.15-rc4, v6.15-rc3 |
|
| #
81586652 |
| 16-Apr-2025 |
Uday Shankar <[email protected]> |
selftests: ublk: add generic_06 for covering fault inject
Add one simple fault inject target, and verify if an application using ublk device sees an I/O error quickly after the ublk server dies.
Si
selftests: ublk: add generic_06 for covering fault inject
Add one simple fault inject target, and verify if an application using ublk device sees an I/O error quickly after the ublk server dies.
Signed-off-by: Uday Shankar <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
|
Revision tags: v6.15-rc2 |
|
| #
2f9a30bd |
| 12-Apr-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add test_stress_05.sh
Add test_stress_05.sh for covering removing device with recovery enabled.
io-hang has been observed with the following patch:
https://lore.kernel.org/linux-b
selftests: ublk: add test_stress_05.sh
Add test_stress_05.sh for covering removing device with recovery enabled.
io-hang has been observed with the following patch:
https://lore.kernel.org/linux-block/[email protected]/
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
57e13a2e |
| 12-Apr-2025 |
Ming Lei <[email protected]> |
selftests: ublk: support user recovery
Add user recovery feature.
Meantime add user recovery test: generic_04 and generic_05(zero copy)
Signed-off-by: Ming Lei <[email protected]> Link: https://
selftests: ublk: support user recovery
Add user recovery feature.
Meantime add user recovery test: generic_04 and generic_05(zero copy)
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
d836590d |
| 12-Apr-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add two stress tests for zero copy feature
Add stress_03 & stress_04 for covering zero copy feature.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/2
selftests: ublk: add two stress tests for zero copy feature
Add stress_03 & stress_04 for covering zero copy feature.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
|
Revision tags: v6.15-rc1 |
|
| #
57ed58c1 |
| 25-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: enable zero copy for stripe target
Use io_uring vectored fixed kernel buffer for handling stripe IO.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/2
selftests: ublk: enable zero copy for stripe target
Use io_uring vectored fixed kernel buffer for handling stripe IO.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
c78ae7b7 |
| 27-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add test for checking zero copy related parameter
ublk zero copy usually requires to set dma and segment parameter correctly, so hard-code null target's dma & segment parameter in n
selftests: ublk: add test for checking zero copy related parameter
ublk zero copy usually requires to set dma and segment parameter correctly, so hard-code null target's dma & segment parameter in non-default value, and verify if they are setup correctly by ublk driver.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
8c778614 |
| 27-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add more tests for covering MQ
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
selftests: ublk: add more tests for covering MQ
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
|
Revision tags: v6.14 |
|
| #
0f3ebf2d |
| 22-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add stripe target
Add ublk stripe target which can take 1~4 underlying backing files or block device, with stripe size 4k ~ 512K.
Add two basic tests(write verify & mkfs/mount/umou
selftests: ublk: add stripe target
Add ublk stripe target which can take 1~4 underlying backing files or block device, with stripe size 4k ~ 512K.
Add two basic tests(write verify & mkfs/mount/umount) over ublk/stripe.
This target is helpful to cover multiple IOs aiming at same fixed/registered IO kernel buffer.
It is also capable of verifying vectored registered (kernel)buffers in future for zero copy, so far it isn't supported yet.
Todo: support vectored registered kernel buffer for ublk/zc.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
8cb9b971 |
| 22-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: enable zero copy for null target
Enable zero copy for null target so that we can evaluate performance from zero copy or not.
Also this should be the simplest ublk zero copy impleme
selftests: ublk: enable zero copy for null target
Enable zero copy for null target so that we can evaluate performance from zero copy or not.
Also this should be the simplest ublk zero copy implementation, which can be served as zc example.
Add test for covering 'add -t null -z'.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
10d962da |
| 22-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: move common code into common.c
Move two functions for initializing & de-initializing backing file into common.c.
Also move one common helper into kublk.h.
Prepare for supporting u
selftests: ublk: move common code into common.c
Move two functions for initializing & de-initializing backing file into common.c.
Also move one common helper into kublk.h.
Prepare for supporting ublk-stripe.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
723977ca |
| 22-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add generic_01 for verifying sequential IO order
block layer, ublk and io_uring might re-order IO in the past
- plug
- queue ublk io command via task work
Add one test for verify
selftests: ublk: add generic_01 for verifying sequential IO order
block layer, ublk and io_uring might re-order IO in the past
- plug
- queue ublk io command via task work
Add one test for verifying if sequential WRITE IO is dispatched in order.
- null target is taken, so we can just observe io order from `tracepoint:block:block_rq_complete` which represents the dispatch order
- WRITE IO is taken because READ may come from system-wide utility
Cc: Uday Shankar <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
|
Revision tags: v6.14-rc7, v6.14-rc6 |
|
| #
af83ccc7 |
| 03-Mar-2025 |
Ming Lei <[email protected]> |
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
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
c60ac48e |
| 03-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add one stress test for covering IO vs. removing device
Add stress_test_01 for running IO vs. removing device for verifying that ublk device removal can work as expected when heavy
selftests: ublk: add one stress test for covering IO vs. removing device
Add stress_test_01 for running IO vs. removing device for verifying that ublk device removal can work as expected when heavy IO workloads are in progress.
null, loop and loop/zc are covered in this tests.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
632051ff |
| 03-Mar-2025 |
Ming Lei <[email protected]> |
selftests: ublk: support shellcheck and fix all warning
Add shellcheck, meantime fixes all warnings.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/20250303124324.356
selftests: ublk: support shellcheck and fix all warning
Add shellcheck, meantime fixes all warnings.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
|
Revision tags: v6.14-rc5 |
|
| #
bedc9cbc |
| 28-Feb-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add ublk zero copy test
Enable zero copy on file backed target, meantime add one fio test for covering write verify, another test for mkfs/mount/umount.
Signed-off-by: Ming Lei <mi
selftests: ublk: add ublk zero copy test
Enable zero copy on file backed target, meantime add one fio test for covering write verify, another test for mkfs/mount/umount.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
5d95bfb5 |
| 28-Feb-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add file backed ublk
Add file backed ublk target code, meantime add one fio test for covering write verify, another test for mkfs/mount/umount.
Signed-off-by: Ming Lei <ming.lei@re
selftests: ublk: add file backed ublk
Add file backed ublk target code, meantime add one fio test for covering write verify, another test for mkfs/mount/umount.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|
| #
6aecda00 |
| 28-Feb-2025 |
Ming Lei <[email protected]> |
selftests: ublk: add kernel selftests for ublk
Both ublk driver and userspace heavily depends on io_uring subsystem, and tools/testing/selftests/ should be the best place for holding this cross-subs
selftests: ublk: add kernel selftests for ublk
Both ublk driver and userspace heavily depends on io_uring subsystem, and tools/testing/selftests/ should be the best place for holding this cross-subsystem tests.
Add basic read/write IO test over this ublk null disk, and make sure ublk working.
More tests will be added.
Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
show more ...
|