On Mon, 22 Sep 2025 10:19:48 -0300 Jason Gunthorpe <[email protected]> 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.



Reply via email to