Skip to content

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Jan 29, 2026

Pull request for series with
subject: ublk: misc improvement in driver and selftests
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1048345

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: 4ded82c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1048345
version: 1

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: 4ded82c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1048345
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1048345=>for-next branch from eb8f589 to 7f19129 Compare January 29, 2026 04:52
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: 1171e38
series: https://patchwork.kernel.org/project/linux-block/list/?series=1048345
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1048345=>for-next branch from 7f19129 to 7dd6050 Compare January 29, 2026 09:13
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: 1171e38
series: https://patchwork.kernel.org/project/linux-block/list/?series=1048606
version: 2

@blktests-ci blktests-ci bot added V2 and removed V1 labels Jan 29, 2026
@blktests-ci blktests-ci bot force-pushed the series/1048345=>for-next branch from 7dd6050 to 9743852 Compare January 29, 2026 16:26
Ming Lei and others added 9 commits January 30, 2026 05:22
Add !list_empty(&fcmd->node) check in ublk_batch_cancel_cmd() to ensure
the fcmd hasn't already been removed from the list. Once an fcmd is
removed from the list, it's considered claimed by whoever removed it
and will be freed by that path.

Meantime switch to list_del_init() for deleting it from list.

Signed-off-by: Ming Lei <[email protected]>
Add a new feature flag UBLK_F_NO_AUTO_PART_SCAN to allow users to suppress
automatic partition scanning when starting a ublk device.

This is useful for some cases in which user don't want to scan
partitions.

Users still can manually trigger partition scanning later when appropriate
using standard tools (e.g., partprobe, blockdev --rereadpt).

Reported-by: Yoav Cohen <[email protected]>
Link: https://lore.kernel.org/linux-block/DM4PR12MB63280C5637917C071C2F0D65A9A8A@DM4PR12MB6328.namprd12.prod.outlook.com/
Signed-off-by: Ming Lei <[email protected]>
Add automatic TID derivation in test_common.sh based on the script
filename. The TID is extracted by stripping the "test_" prefix and
".sh" suffix from the script name (e.g., test_loop_01.sh -> loop_01).

This removes the need for each test script to manually define TID,
reducing boilerplate and preventing potential mismatches between
the script name and TID. Scripts can still override TID after
sourcing test_common.sh if needed.

Reviewed-by: Caleb Sander Mateos <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Add test_part_01.sh to test the UBLK_F_NO_AUTO_PART_SCAN feature
flag which allows suppressing automatic partition scanning during
device startup while still allowing manual partition probing.

The test verifies:
- Normal behavior: partitions are auto-detected without the flag
- With flag: partitions are not auto-detected during START_DEV
- Manual scan: blockdev --rereadpt works with the flag

Also update kublk tool to support --no_auto_part_scan option and
recognize the feature flag.

Signed-off-by: Ming Lei <[email protected]>
This test exercises partition scanning behavior, so move it to
the test_part_* group for consistency.

Signed-off-by: Ming Lei <[email protected]>
Encapsulate each test case in its own function that creates the
device, runs checks, and deletes only that device. This avoids
calling _cleanup_test multiple times.

Signed-off-by: Ming Lei <[email protected]>
The null target doesn't handle IO, so disable partition scan to avoid IO
failures caused by integrity verification during the kernel's partition
table read.

Signed-off-by: Ming Lei <[email protected]>
Log test start and end time in dmesg, so generated log messages
during the test run can be linked to specific test from the test
suite.

Signed-off-by: Alexander Atanasov <[email protected]>
(switch to `date +%F %T`)
Signed-off-by: Ming Lei <[email protected]>
Create and use a temporary directory for the files created during
test runs. If TMPDIR environment variable is set use it as a base
for the temporary directory path.
TMPDIR=/mnt/scratch make run_tests
and
TMPDIR=/mnt/scratch ./test_generic_01.sh
will place test directory under /mnt/scratch

Signed-off-by: Alexander Atanasov <[email protected]>
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: d4b7351
series: https://patchwork.kernel.org/project/linux-block/list/?series=1048606
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1048345=>for-next branch from 9743852 to 6df89e5 Compare January 29, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant