Re: [PATCH] Revert "nvme: cleanup zone information initialization"

From: Kanchan Joshi
Date: Mon Mar 08 2021 - 11:33:18 EST


On Mon, Mar 8, 2021 at 4:21 PM Niklas Cassel <Niklas.Cassel@xxxxxxx> wrote:
>
> From: Niklas Cassel <niklas.cassel@xxxxxxx>
>
> This reverts commit 73d90386b559d6f4c3c5db5e6bb1b68aae8fd3e7.
>
> Commit 73d90386b559 ("nvme: cleanup zone information initialization")
> introduced the following warning at boot:
> WARNING: CPU: 0 PID: 7 at block/blk-settings.c:252 blk_queue_max_zone_append_sectors+0x7d/0x90
>
> The warning is the result of chunk_sectors being 0.

This looks same as what Chaitanya posted the fix for -
https://lore.kernel.org/linux-nvme/20210303224717.51633-1-chaitanya.kulkarni@xxxxxxx/