Thread (32 messages) 32 messages, 4 authors, 2022-09-16

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

From: Chaitanya Kulkarni <hidden>
Date: 2022-09-14 17:18:02
Also in: dm-devel, linux-nvme, lkml

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@kernel.org>
Reviewed by: Adam Manzanares [off-list ref]
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Pankaj Raghav <redacted>

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help