Skip to content

Commit b011769

Browse files
committed
zbd/005: remove offset option of blkzone reset command
The test case zbd/005 performs sequential writes to all sequential write required zone on the test target zoned block device. To prepare the device for this operation, the test invokes the blkzone reset command. However, it takes very long time to complete. The root cause of the long reset time is the offset option of the blkzone reset command. This option specifies the first sequential write required zone. When the offset options is provided, the kernel processes the reset operation zone by zone. As a result, a separated zone reset command is issued to each sequential write required zone, significantly increasing the overall time. To reduce the execution time of the blkzone reset command, remove the offset option. Without this option, the kernel can perform a single zone reset operation that resets all sequential write required zones. Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent d24f744 commit b011769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/zbd/005

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test_device() {
4646
zbdmode=("--zonemode=zbd" "--max_open_zones=${moaz}")
4747
fi
4848

49-
blkzone reset -o "${ZONE_STARTS[zone_idx]}" "${TEST_DEV}"
49+
blkzone reset "${TEST_DEV}"
5050

5151
_test_dev_set_scheduler deadline
5252

0 commit comments

Comments
 (0)