]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
zloop: introduce the zone_append configuration parameter
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 15 Nov 2025 12:15:54 +0000 (21:15 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Nov 2025 16:40:09 +0000 (09:40 -0700)
commit9236c5fdd5a8bec2445e834e7e1bbefb2eb62f67
tree6c2dfa4865d7b18a395dd56fbf17e47bd19d696b
parente3a96ca90462f80d9f58a1236514823334deef39
zloop: introduce the zone_append configuration parameter

A zloop zoned block device declares to the block layer that it supports
zone append operations. That is, a zloop device ressembles an NVMe ZNS
devices supporting zone append.

This native support is fine but it does not allow exercising the block
layer zone write plugging emulation of zone append, as is done with SCSI
or ATA SMR HDDs.

Introduce the zone_append configuration parameter to allow creating a
zloop device without native support for zone append, thus relying on the
block layer zone append emulation. If not specified, zone append support
is enabled by default. Otherwise, a value of 0 disables native zone
append and a value of 1 enables it.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zloop.c