Re: [PATCH v4 05/10] mm/gup: migrate pinned pages out of movable zone

2021-01-13 Thread Pavel Tatashin
On Fri, Dec 18, 2020 at 8:08 AM Michal Hocko wrote: > > On Fri 18-12-20 07:24:53, Pavel Tatashin wrote: > > On Fri, Dec 18, 2020 at 4:43 AM Michal Hocko wrote: > > > > > > On Thu 17-12-20 13:52:38, Pavel Tatashin wrote: > > > > + * 1. Pinned pages: (long-term) pinning of movable pages is >

Re: [PATCH v4 05/10] mm/gup: migrate pinned pages out of movable zone

2020-12-18 Thread Michal Hocko
On Fri 18-12-20 07:24:53, Pavel Tatashin wrote: > On Fri, Dec 18, 2020 at 4:43 AM Michal Hocko wrote: > > > > On Thu 17-12-20 13:52:38, Pavel Tatashin wrote: > > > + * 1. Pinned pages: (long-term) pinning of movable pages is avoided > > > + *when pages are pinned and faulted, but it

Re: [PATCH v4 05/10] mm/gup: migrate pinned pages out of movable zone

2020-12-18 Thread Pavel Tatashin
On Fri, Dec 18, 2020 at 4:43 AM Michal Hocko wrote: > > On Thu 17-12-20 13:52:38, Pavel Tatashin wrote: > > + * 1. Pinned pages: (long-term) pinning of movable pages is avoided > > + *when pages are pinned and faulted, but it is still possible that > > + *address space alrea

Re: [PATCH v4 05/10] mm/gup: migrate pinned pages out of movable zone

2020-12-18 Thread Michal Hocko
On Thu 17-12-20 13:52:38, Pavel Tatashin wrote: > + * 1. Pinned pages: (long-term) pinning of movable pages is avoided > + *when pages are pinned and faulted, but it is still possible that > + *address space already has pages in ZONE_MOVABLE at the time when > + *pag

[PATCH v4 05/10] mm/gup: migrate pinned pages out of movable zone

2020-12-17 Thread Pavel Tatashin
We should not pin pages in ZONE_MOVABLE. Currently, we do not pin only movable CMA pages. Generalize the function that migrates CMA pages to migrate all movable pages. Use is_pinnable_page() to check which pages need to be migrated Signed-off-by: Pavel Tatashin Reviewed-by: John Hubbard --- inc