Re: [PATCH 1/3] mm/vmalloc: group xa_init with vbq field initializations
From: Dev Jain
Date: Mon Sep 14 2026 - 23:53:22 EST
On 14/09/26 9:04 am, Ye Liu wrote:
> From: Ye Liu <liuye@xxxxxxxxxx>
>
> Move xa_init() next to the other vbq field initializations instead of
> after the unrelated vfree_deferred setup.
>
> Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>
> ---
LGTM
Reviewed-by: Dev Jain <dev.jain@xxxxxxx>
> mm/vmalloc.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index 859e6d2d57a3..117483dd048c 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -5585,10 +5585,11 @@ void __init vmalloc_init(void)
> vbq = &per_cpu(vmap_block_queue, i);
> spin_lock_init(&vbq->lock);
> INIT_LIST_HEAD(&vbq->free);
> + xa_init(&vbq->vmap_blocks);
> +
> p = &per_cpu(vfree_deferred, i);
> init_llist_head(&p->list);
> INIT_WORK(&p->wq, delayed_vfree_work);
> - xa_init(&vbq->vmap_blocks);
> }
>
> /*
>