[PATCH v13 06/13] null_blk: allow zoned devices with non power-of-2 zone sizes

Chaitanya Kulkarni chaitanyak at nvidia.com
Wed Sep 14 10:17:52 PDT 2022


On 9/12/2022 1:21 AM, Pankaj Raghav wrote:
> Convert the power-of-2(po2) based calculation with zone size to be generic
> in null_zone_no with optimization for po2 zone sizes.
> 
> The nr_zones calculation in null_init_zoned_dev has been replaced with a
> division without special handling for po2 zone sizes as this function is
> called only during the initialization and will not be invoked in the hot
> path.
> 
> Reviewed-by: Luis Chamberlain <mcgrof at kernel.org>
> Reviewed by: Adam Manzanares <a.manzanares at samsung.com>
> Reviewed-by: Hannes Reinecke <hare at suse.de>
> Reviewed-by: Bart Van Assche <bvanassche at acm.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