]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
block: remove the max_zone_append_sectors check in blk_revalidate_disk_zones
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 07:39:31 +0000 (08:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2024 17:34:06 +0000 (10:34 -0700)
With the lock layer zone append emulation, we are now always setting a
max_zone_append_sectors value for zoned devices and this check can't
ever trigger.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241104073955.112324-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c

index af19296fa50df1dbd2406695f04d6dc8a59908ca..a287577d1ad6fb24a3a59975c133e4051218d484 100644 (file)
@@ -1774,12 +1774,6 @@ int blk_revalidate_disk_zones(struct gendisk *disk)
                return -ENODEV;
        }
 
-       if (!queue_max_zone_append_sectors(q)) {
-               pr_warn("%s: Invalid 0 maximum zone append limit\n",
-                       disk->disk_name);
-               return -ENODEV;
-       }
-
        /*
         * Ensure that all memory allocations in this context are done as if
         * GFP_NOIO was specified.