On Thu, Dec 22, 2022 at 08:00:20PM +0100, Uladzislau Rezki (Sony) wrote: > @@ -1825,9 +1825,8 @@ static void free_vmap_area_noflush(struct vmap_area *va) > unsigned long va_start = va->va_start; > unsigned long nr_lazy; > > - spin_lock(&vmap_area_lock); > - unlink_va(va, &vmap_area_root); > - spin_unlock(&vmap_area_lock); > + if (WARN_ON_ONCE(!list_empty(&va->list))) > + return; I'd just drop this check as the function is not exported. Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>