Re: [PATCH] mm: vmalloc: add cond_resched() in __vunmap()

From: Michal Hocko
Date: Tue Jun 29 2021 - 10:12:07 EST


On Mon 28-06-21 18:40:02, Uladzislau Rezki wrote:
> Also another option can be:
>
> if a pcp list is fully consumed, so a refilling is required to proceed with array
> populating, leave atomic section(enable irq), do a breath by invoking cond_resched()?

I do not know. I would rather not medle with the pcp batches. It is a hot
path and caller can decide the fallback mechanism.
--
Michal Hocko
SUSE Labs