Re: [RFC PATCH 4/8] hugetlb: call update_and_free_page without hugetlb_lock

2021-03-22 Thread Michal Hocko
On Fri 19-03-21 15:42:05, Mike Kravetz wrote: > With the introduction of remove_hugetlb_page(), there is no need for > update_and_free_page to hold the hugetlb lock. Change all callers to > drop the lock before calling. > > With additional code modifications, this will allow loops which decrease

[RFC PATCH 4/8] hugetlb: call update_and_free_page without hugetlb_lock

2021-03-19 Thread Mike Kravetz
With the introduction of remove_hugetlb_page(), there is no need for update_and_free_page to hold the hugetlb lock. Change all callers to drop the lock before calling. With additional code modifications, this will allow loops which decrease the huge page pool to drop the hugetlb_lock with each pa