Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-16 Thread Aneesh Kumar K.V
Alexey Kardashevskiy writes: > On 16/10/2018 18:16, Aneesh Kumar K.V wrote: >> Alexey Kardashevskiy writes: >> >>> + } + } + } + if (!list_empty(&cma_page_list)) { + /* + * drop the above get_user_pages reference. +

Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-16 Thread Alexey Kardashevskiy
On 16/10/2018 18:16, Aneesh Kumar K.V wrote: > Alexey Kardashevskiy writes: > >> On 18/09/2018 21:58, 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

Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-16 Thread Aneesh Kumar K.V
Alexey Kardashevskiy writes: > On 18/09/2018 21:58, 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 referenc

Re: [PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-10-15 Thread Alexey Kardashevskiy
On 18/09/2018 21:58, 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 able

[PATCH V3 1/2] mm: Add get_user_pages_cma_migrate

2018-09-18 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 f