[PATCH v13 04/13] nvmet: Allow ZNS target to support non-power_of_2 zone sizes
Chaitanya Kulkarni
chaitanyak at nvidia.com
Wed Sep 14 10:16:27 PDT 2022
On 9/12/2022 1:21 AM, Pankaj Raghav wrote:
> A generic bdev_zone_no() helper is added to calculate zone number for a
> given sector in a block device. This helper internally uses disk_zone_no()
> to find the zone number.
>
> Use the helper bdev_zone_no() to calculate nr of zones. This let's us
> make modifications to the math if needed in one place and adds now
> support for zoned devices with non po2 zone size.
>
> Reviewed by: Adam Manzanares <a.manzanares at samsung.com>
> Reviewed-by: Bart Van Assche <bvanassche at acm.org>
> Reviewed-by: Hannes Reinecke <hare at suse.de>
> Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>
> Signed-off-by: Luis Chamberlain <mcgrof at kernel.org>
> Signed-off-by: Pankaj Raghav <p.raghav at samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
-ck
More information about the Linux-nvme
mailing list