--- a/mm/vmalloc.c~mm-vmalloc-add-cond_resched-in-__vunmap +++ a/mm/vmalloc.c @@ -2567,6 +2567,7 @@ static void __vunmap(const void *addr, i BUG_ON(!page); __free_pages(page, page_order); + cond_resched(); } atomic_long_sub(area->nr_pages, &nr_vmalloc_pages);