Skip to content

Commit e494c3d

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove the max_zone_append_sectors check in blk_revalidate_disk_zones
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>
1 parent 05df016 commit e494c3d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

block/blk-zoned.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,12 +1774,6 @@ int blk_revalidate_disk_zones(struct gendisk *disk)
17741774
return -ENODEV;
17751775
}
17761776

1777-
if (!queue_max_zone_append_sectors(q)) {
1778-
pr_warn("%s: Invalid 0 maximum zone append limit\n",
1779-
disk->disk_name);
1780-
return -ENODEV;
1781-
}
1782-
17831777
/*
17841778
* Ensure that all memory allocations in this context are done as if
17851779
* GFP_NOIO was specified.

0 commit comments

Comments
 (0)