Re: [PATCH v3 09/14] mm: thp: check pmd migration entry in common path

2017-02-09 Thread Zi Yan
On 9 Feb 2017, at 3:16, Naoya Horiguchi wrote: > On Sun, Feb 05, 2017 at 11:12:47AM -0500, Zi Yan wrote: >> From: Naoya Horiguchi >> >> If one of callers of page migration starts to handle thp, >> memory management code start to see pmd migration entry, so we need >>

Re: [PATCH v3 09/14] mm: thp: check pmd migration entry in common path

2017-02-09 Thread Zi Yan
On 9 Feb 2017, at 3:16, Naoya Horiguchi wrote: > On Sun, Feb 05, 2017 at 11:12:47AM -0500, Zi Yan wrote: >> From: Naoya Horiguchi >> >> 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

Re: [PATCH v3 09/14] mm: thp: check pmd migration entry in common path

2017-02-09 Thread Naoya Horiguchi
On Sun, Feb 05, 2017 at 11:12:47AM -0500, Zi Yan wrote: > From: Naoya Horiguchi > > 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

Re: [PATCH v3 09/14] mm: thp: check pmd migration entry in common path

2017-02-09 Thread Naoya Horiguchi
On Sun, Feb 05, 2017 at 11:12:47AM -0500, Zi Yan wrote: > From: Naoya Horiguchi > > 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

[PATCH v3 09/14] mm: thp: check pmd migration entry in common path

2017-02-05 Thread Zi Yan
From: Naoya Horiguchi 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

[PATCH v3 09/14] mm: thp: check pmd migration entry in common path

2017-02-05 Thread Zi Yan
From: Naoya Horiguchi 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