Skip to content

Commit

Permalink
block: remove the max_zone_append_sectors check in blk_revalidate_dis…
Browse files Browse the repository at this point in the history
…k_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>
  • Loading branch information
Christoph Hellwig authored and axboe committed Nov 4, 2024
1 parent 05df016 commit e494c3d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions block/blk-zoned.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e494c3d

Please sign in to comment.