diff options
author | Christoph Hellwig <hch@lst.de> | 2024-11-04 09:26:29 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-11 19:06:45 +0300 |
commit | 60dc5ea6bcfd078b71419640d49afa649acf9450 (patch) | |
tree | 9255c6e6febcc4f4184bb80911bf47e58a832a35 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4cf58d9529097328b669e3c8693ed21e3a041903 (diff) | |
download | linux-60dc5ea6bcfd078b71419640d49afa649acf9450.tar.xz |
block: take chunk_sectors into account in bio_split_write_zeroes
For zoned devices, write zeroes must be split at the zone boundary
which is represented as chunk_sectors. For other uses like the
internally RAIDed NVMe devices it is probably at least useful.
Enhance get_max_io_size to know about write zeroes and use it in
bio_split_write_zeroes. Also add a comment about the seemingly
nonsensical zero max_write_zeroes limit.
Fixes: 885fa13f6559 ("block: implement splitting of REQ_OP_WRITE_ZEROES bios")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20241104062647.91160-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions