Re: [RFC v4 0/3] mm: zap pages with read mmap_sem in munmap for large mapping

From: Michal Hocko
Date: Thu Jul 12 2018 - 04:04:23 EST


On Wed 11-07-18 10:04:48, Yang Shi wrote:
[...]
> One approach is to save all the vmas on a separate list, then zap_page_range
> does unmap with this list.

Just detached unmapped vma chain from mm. You can keep the existing
vm_next chain and reuse it.

--
Michal Hocko
SUSE Labs