Re: [PATCH 16/24] huge tmpfs: fix problems from premature exposure of pagetable

2015-07-01 Thread Kirill A. Shutemov
On Fri, Feb 20, 2015 at 08:16:32PM -0800, Hugh Dickins wrote: > Andrea wrote a very interesting comment on THP in mm/memory.c, > just before the end of __handle_mm_fault(): > > * A regular pmd is established and it can't morph into a huge pmd > * from under us anymore at this point because we ho

[PATCH 16/24] huge tmpfs: fix problems from premature exposure of pagetable

2015-02-20 Thread Hugh Dickins
Andrea wrote a very interesting comment on THP in mm/memory.c, just before the end of __handle_mm_fault(): * A regular pmd is established and it can't morph into a huge pmd * from under us anymore at this point because we hold the mmap_sem * read mode and khugepaged takes it in write mode. So n