Re: [RFC PATCH V2 2/4] mm: Add get_user_pages_cma_migrate

2018-09-06 Thread Aneesh Kumar K.V
On 09/06/2018 06:15 PM, Michal Hocko wrote: On Thu 06-09-18 11:13:40, Aneesh Kumar K.V wrote: This helper does a get_user_pages_fast and if it find pages in the CMA area it will try to migrate them before taking page reference. This makes sure that we don't keep non-movable pages (due to page

Re: [RFC PATCH V2 2/4] mm: Add get_user_pages_cma_migrate

2018-09-06 Thread Michal Hocko
On Thu 06-09-18 11:13:40, Aneesh Kumar K.V wrote: > This helper does a get_user_pages_fast and if it find pages in the CMA area > it will try to migrate them before taking page reference. This makes sure that > we don't keep non-movable pages (due to page reference count) in the CMA area. > Not

[RFC PATCH V2 2/4] mm: Add get_user_pages_cma_migrate

2018-09-05 Thread Aneesh Kumar K.V
This helper does a get_user_pages_fast and if it find pages in the CMA area it will try to migrate them before taking page reference. This makes sure that we don't keep non-movable pages (due to page reference count) in the CMA area. Not able to move pages out of CMA area result in CMA allocation