Re: [External] Re: [PATCH v9 04/11] mm/hugetlb: Defer freeing of HugeTLB pages

2020-12-16 Thread Muchun Song
On Thu, Dec 17, 2020 at 7:48 AM Mike Kravetz wrote: > > On 12/13/20 7:45 AM, Muchun Song wrote: > > In the subsequent patch, we will allocate the vmemmap pages when free > > HugeTLB pages. But update_and_free_page() is called from a non-task > > context(and hold hugetlb_lock), so we can defer the

Re: [PATCH v9 04/11] mm/hugetlb: Defer freeing of HugeTLB pages

2020-12-16 Thread Mike Kravetz
On 12/13/20 7:45 AM, Muchun Song wrote: > In the subsequent patch, we will allocate the vmemmap pages when free > HugeTLB pages. But update_and_free_page() is called from a non-task > context(and hold hugetlb_lock), so we can defer the actual freeing in > a workqueue to prevent use GFP_ATOMIC to al

[PATCH v9 04/11] mm/hugetlb: Defer freeing of HugeTLB pages

2020-12-13 Thread Muchun Song
In the subsequent patch, we will allocate the vmemmap pages when free HugeTLB pages. But update_and_free_page() is called from a non-task context(and hold hugetlb_lock), so we can defer the actual freeing in a workqueue to prevent use GFP_ATOMIC to allocate the vmemmap pages. Signed-off-by: Muchun