Re: [PATCH v8 06/10] mm: thp: check pmd migration entry in common path

2017-07-14 Thread Zi Yan
On 14 Jul 2017, at 5:29, Naoya Horiguchi wrote: > On Sat, Jul 01, 2017 at 09:40:04AM -0400, Zi Yan wrote: >> From: Zi Yan >> >> If one of callers of page migration starts to handle thp, >> memory management code start to see pmd migration entry, so we need >> to prepare for it before enabling. Th

Re: [PATCH v8 06/10] mm: thp: check pmd migration entry in common path

2017-07-14 Thread Naoya Horiguchi
On Sat, Jul 01, 2017 at 09:40:04AM -0400, Zi Yan wrote: > From: Zi Yan > > If one of callers of page migration starts to handle thp, > memory management code start to see pmd migration entry, so we need > to prepare for it before enabling. This patch changes various code > point which checks the

[PATCH v8 06/10] mm: thp: check pmd migration entry in common path

2017-07-01 Thread Zi Yan
From: Zi Yan If one of callers of page migration starts to handle thp, memory management code start to see pmd migration entry, so we need to prepare for it before enabling. This patch changes various code point which checks the status of given pmds in order to prevent race between thp migration