]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: validate queue limits
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Nov 2024 08:45:36 +0000 (09:45 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2024 18:40:11 +0000 (11:40 -0700)
commite559ee022658c70bdc07c4846bf279f5a5abc494
tree2d3a268d7a73933fb39f27831ae580c7c8207487
parent470d2bc3a0bc19a849cc7478c02d3f5ecaa1233e
btrfs: validate queue limits

Call blk_validate_limits on the queue limits used for zone append
splitting so that calculated values get filled in and any stacking
conflicts get cought.

Without this there isn't a max_zone_append_sectors limits as of commit
559218d43ec9 ("block: pre-calculate max_zone_append_sectors").

Fixes: 559218d43ec9 ("block: pre-calculate max_zone_append_sectors")
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241113084541.34315-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/btrfs/zoned.c