linux-stable/drivers/block/null_blk
Christoph Hellwig 2a8f6153e1 block: pre-calculate max_zone_append_sectors
max_zone_append_sectors differs from all other queue limits in that the
final value used is not stored in the queue_limits but needs to be
obtained using queue_limits_max_zone_append_sectors helper.  This not
only adds (tiny) extra overhead to the I/O path, but also can be easily
forgotten in file system code.

Add a new max_hw_zone_append_sectors value to queue_limits which is
set by the driver, and calculate max_zone_append_sectors from that and
the other inputs in blk_validate_zoned_limits, similar to how
max_sectors is calculated to fix this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241104073955.112324-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-11-04 10:34:07 -07:00
..
Kconfig block: null_blk: make fault-injection dynamically configurable per device 2023-04-13 07:38:55 -06:00
main.c null_blk: Don't bother validating blocksize 2024-07-09 00:00:17 -06:00
Makefile null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
null_blk.h null_blk: Introduce the zone_full parameter 2024-07-05 00:42:04 -06:00
trace.c null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
trace.h null_blk: Fix two sparse warnings 2024-05-13 17:51:17 -06:00
zoned.c block: pre-calculate max_zone_append_sectors 2024-11-04 10:34:07 -07:00