[PATCH v5 3/4] kho: add support for preserving vmalloc allocations
Andrew Morton
akpm at linux-foundation.org
Mon Sep 22 14:34:07 PDT 2025
On Mon, 22 Sep 2025 10:19:48 -0300 Jason Gunthorpe <jgg at nvidia.com> wrote:
> > +static void kho_vmalloc_free_chunks(struct kho_vmalloc *kho_vmalloc)
> > +{
> > + struct kho_vmalloc_chunk *chunk = KHOSER_LOAD_PTR(kho_vmalloc->first);
> > +
> > + while (chunk) {
> > + struct kho_vmalloc_chunk *tmp = chunk;
> > +
> > + kho_vmalloc_unpreserve_chunk(chunk);
> > +
> > + chunk = KHOSER_LOAD_PTR(chunk->hdr.next);
> > + kfree(tmp);
>
> Shouldn't this be free_page()?
Or vfree()?
Not sure why this code works - I'll suspend the series from linux-next
for now.
More information about the kexec
mailing list