Re: [PATCH 1/2] mm/hugetlb: grab head page refcount once per group of subpages

2021-01-26 Thread Mike Kravetz
On 1/25/21 12:57 PM, Joao Martins wrote: > follow_hugetlb_page() once it locks the pmd/pud, it checks all the > subpages in a huge page and grabs a reference for each one, > depending on how many pages we can store or the size of va range. > Similar to gup-fast, have follow_hugetlb_page() grab the

[PATCH 1/2] mm/hugetlb: grab head page refcount once per group of subpages

2021-01-25 Thread Joao Martins
follow_hugetlb_page() once it locks the pmd/pud, it checks all the subpages in a huge page and grabs a reference for each one, depending on how many pages we can store or the size of va range. Similar to gup-fast, have follow_hugetlb_page() grab the head page refcount only after counting all its