From: Ming Lei <ming.lei@redhat.com>
To: Jens Axboe <axboe@kernel.dk>, linux-block@vger.kernel.org
Cc: Caleb Sander Mateos <csander@purestorage.com>,
Uday Shankar <ushankar@purestorage.com>,
Alexander Atanasov <alex@zazolabs.com>,
Ming Lei <ming.lei@redhat.com>
Subject: [PATCH V2 0/9] ublk: misc improvement in driver and selftests
Date: Fri, 30 Jan 2026 00:19:49 +0800 [thread overview]
Message-ID: <20260129162001.3532311-1-ming.lei@redhat.com> (raw)
The 1st patch improves fetch command removal and canceling, which is
reported as risk from AI.
The 2nd patch adds UBLK_F_NO_AUTO_PART_SCAN for disabling partition
scanning during adding disk.
The other patches improves ublk selftests:
- rename test_generic_15 to test_part_02
- refactor test_null_04 into separate functions and simplifying
implementations
- kill IO verify failure in null/integrity tests by not scanning partition
- mark each test start and end in dmesg log
- move all temp files/dir into single directory, and allow user to
override default temp dir
- derive TID automatically from script name
V2:
- add `selftests: ublk: move test temp files into a sub directory` for
avoiding conflict
- avoid wq schedule for UBLK_F_NO_AUTO_PART_SCAN(Caleb Sander Mateos)
- avoid sed in retrieving TID (Alexander Atanasov)
- commit log typo fix on 2nd patch(Alexander Atanasov)
- more ublk selftests improvement:
- rename test_generic_15 to test_part_02
- refactor test_null_04 into separate functions and simplifying implementations
- kill IO failure in null/integrity tests by not scanning partition
Alexander Atanasov (2):
selftests: ublk: mark each test start and end time in dmesg
selftests: ublk: move test temp files into a sub directory
Ming Lei (7):
ublk: check list membership before cancelling batch fetch command
ublk: add UBLK_F_NO_AUTO_PART_SCAN feature flag
selftests: ublk: derive TID automatically from script name
selftests: ublk: add selftest for UBLK_F_NO_AUTO_PART_SCAN
selftests: ublk: rename test_generic_15 to test_part_02
selftests: ublk: refactor test_null_04 into separate functions
selftests: ublk: disable partition scan for integrity tests
drivers/block/ublk_drv.c | 30 ++-
include/uapi/linux/ublk_cmd.h | 3 +
tools/testing/selftests/ublk/Makefile | 4 +-
tools/testing/selftests/ublk/kublk.c | 6 +-
tools/testing/selftests/ublk/kublk.h | 3 +-
tools/testing/selftests/ublk/test_batch_01.sh | 1 -
tools/testing/selftests/ublk/test_batch_02.sh | 1 -
tools/testing/selftests/ublk/test_batch_03.sh | 1 -
tools/testing/selftests/ublk/test_common.sh | 18 +-
.../testing/selftests/ublk/test_generic_01.sh | 1 -
.../testing/selftests/ublk/test_generic_02.sh | 1 -
.../testing/selftests/ublk/test_generic_03.sh | 1 -
.../testing/selftests/ublk/test_generic_04.sh | 1 -
.../testing/selftests/ublk/test_generic_05.sh | 1 -
.../testing/selftests/ublk/test_generic_06.sh | 1 -
.../testing/selftests/ublk/test_generic_07.sh | 1 -
.../testing/selftests/ublk/test_generic_08.sh | 1 -
.../testing/selftests/ublk/test_generic_09.sh | 1 -
.../testing/selftests/ublk/test_generic_10.sh | 1 -
.../testing/selftests/ublk/test_generic_11.sh | 1 -
.../testing/selftests/ublk/test_generic_12.sh | 1 -
.../testing/selftests/ublk/test_generic_13.sh | 1 -
.../testing/selftests/ublk/test_generic_14.sh | 1 -
.../testing/selftests/ublk/test_generic_16.sh | 1 -
tools/testing/selftests/ublk/test_loop_01.sh | 1 -
tools/testing/selftests/ublk/test_loop_02.sh | 1 -
tools/testing/selftests/ublk/test_loop_03.sh | 1 -
tools/testing/selftests/ublk/test_loop_04.sh | 1 -
tools/testing/selftests/ublk/test_loop_05.sh | 1 -
tools/testing/selftests/ublk/test_loop_06.sh | 1 -
tools/testing/selftests/ublk/test_loop_07.sh | 1 -
tools/testing/selftests/ublk/test_loop_08.sh | 1 -
tools/testing/selftests/ublk/test_null_01.sh | 1 -
tools/testing/selftests/ublk/test_null_02.sh | 1 -
tools/testing/selftests/ublk/test_null_03.sh | 1 -
tools/testing/selftests/ublk/test_null_04.sh | 249 +++++++-----------
tools/testing/selftests/ublk/test_part_01.sh | 104 ++++++++
.../{test_generic_15.sh => test_part_02.sh} | 1 -
.../testing/selftests/ublk/test_stress_01.sh | 1 -
.../testing/selftests/ublk/test_stress_02.sh | 1 -
.../testing/selftests/ublk/test_stress_03.sh | 1 -
.../testing/selftests/ublk/test_stress_04.sh | 1 -
.../testing/selftests/ublk/test_stress_05.sh | 1 -
.../testing/selftests/ublk/test_stress_06.sh | 1 -
.../testing/selftests/ublk/test_stress_07.sh | 1 -
.../testing/selftests/ublk/test_stress_08.sh | 1 -
.../testing/selftests/ublk/test_stress_09.sh | 1 -
.../testing/selftests/ublk/test_stripe_01.sh | 1 -
.../testing/selftests/ublk/test_stripe_02.sh | 1 -
.../testing/selftests/ublk/test_stripe_03.sh | 1 -
.../testing/selftests/ublk/test_stripe_04.sh | 1 -
.../testing/selftests/ublk/test_stripe_05.sh | 1 -
.../testing/selftests/ublk/test_stripe_06.sh | 1 -
53 files changed, 249 insertions(+), 213 deletions(-)
create mode 100755 tools/testing/selftests/ublk/test_part_01.sh
rename tools/testing/selftests/ublk/{test_generic_15.sh => test_part_02.sh} (99%)
--
2.47.0
next reply other threads:[~2026-01-29 16:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 16:19 Ming Lei [this message]
2026-01-29 16:19 ` [PATCH V2 1/9] ublk: check list membership before cancelling batch fetch command Ming Lei
2026-01-29 16:19 ` [PATCH V2 2/9] ublk: add UBLK_F_NO_AUTO_PART_SCAN feature flag Ming Lei
2026-01-29 16:19 ` [PATCH V2 3/9] selftests: ublk: derive TID automatically from script name Ming Lei
2026-01-29 16:19 ` [PATCH V2 4/9] selftests: ublk: add selftest for UBLK_F_NO_AUTO_PART_SCAN Ming Lei
2026-01-29 16:19 ` [PATCH V2 5/9] selftests: ublk: rename test_generic_15 to test_part_02 Ming Lei
2026-01-29 16:19 ` [PATCH V2 6/9] selftests: ublk: refactor test_null_04 into separate functions Ming Lei
2026-01-29 16:19 ` [PATCH V2 7/9] selftests: ublk: disable partition scan for integrity tests Ming Lei
2026-01-29 16:19 ` [PATCH V2 8/9] selftests: ublk: mark each test start and end time in dmesg Ming Lei
2026-01-29 16:19 ` [PATCH V2 9/9] selftests: ublk: move test temp files into a sub directory Ming Lei
2026-01-31 2:43 ` Ming Lei
2026-01-31 10:30 ` Alexander Atanasov
2026-01-31 13:49 ` [PATCH V2 0/9] ublk: misc improvement in driver and selftests Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260129162001.3532311-1-ming.lei@redhat.com \
--to=ming.lei@redhat.com \
--cc=alex@zazolabs.com \
--cc=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=linux-block@vger.kernel.org \
--cc=ushankar@purestorage.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox