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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 05df016 commit e494c3d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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)