Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-23 Thread Toshi Kani
On Tue, 2015-06-23 at 14:44 +0300, Kirill A. Shutemov wrote: > On Mon, Jun 22, 2015 at 02:55:55PM -0600, Toshi Kani wrote: > > On Sat, 2015-06-20 at 22:46 +0300, Kirill A. Shutemov wrote: > > > On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: > > > > DAX has the following issues in a

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-23 Thread Kirill A. Shutemov
On Mon, Jun 22, 2015 at 02:55:55PM -0600, Toshi Kani wrote: > On Sat, 2015-06-20 at 22:46 +0300, Kirill A. Shutemov wrote: > > On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: > > > DAX has the following issues in a shared or read-only private > > > mmap'd file. > > > -

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-23 Thread Kirill A. Shutemov
On Mon, Jun 22, 2015 at 02:55:55PM -0600, Toshi Kani wrote: On Sat, 2015-06-20 at 22:46 +0300, Kirill A. Shutemov wrote: On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: DAX has the following issues in a shared or read-only private mmap'd file. - mmap(MAP_POPULATE) does not

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-23 Thread Toshi Kani
On Tue, 2015-06-23 at 14:44 +0300, Kirill A. Shutemov wrote: On Mon, Jun 22, 2015 at 02:55:55PM -0600, Toshi Kani wrote: On Sat, 2015-06-20 at 22:46 +0300, Kirill A. Shutemov wrote: On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: DAX has the following issues in a shared or

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-22 Thread Toshi Kani
On Sat, 2015-06-20 at 22:46 +0300, Kirill A. Shutemov wrote: > On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: > > DAX has the following issues in a shared or read-only private > > mmap'd file. > > - mmap(MAP_POPULATE) does not pre-fault > > - mlock() fails with -ENOMEM > > > > DAX

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-22 Thread Toshi Kani
On Sat, 2015-06-20 at 22:46 +0300, Kirill A. Shutemov wrote: On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: DAX has the following issues in a shared or read-only private mmap'd file. - mmap(MAP_POPULATE) does not pre-fault - mlock() fails with -ENOMEM DAX uses

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-20 Thread Kirill A. Shutemov
On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: > DAX has the following issues in a shared or read-only private > mmap'd file. > - mmap(MAP_POPULATE) does not pre-fault > - mlock() fails with -ENOMEM > > DAX uses VM_MIXEDMAP for mmap'd files, which do not have struct > page

Re: [PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-20 Thread Kirill A. Shutemov
On Tue, Jun 16, 2015 at 04:28:30PM -0600, Toshi Kani wrote: DAX has the following issues in a shared or read-only private mmap'd file. - mmap(MAP_POPULATE) does not pre-fault - mlock() fails with -ENOMEM DAX uses VM_MIXEDMAP for mmap'd files, which do not have struct page associated with

[PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-16 Thread Toshi Kani
DAX has the following issues in a shared or read-only private mmap'd file. - mmap(MAP_POPULATE) does not pre-fault - mlock() fails with -ENOMEM DAX uses VM_MIXEDMAP for mmap'd files, which do not have struct page associated with the ranges. Both MAP_POPULATE and mlock() call __mm_populate(),

[PATCH] mm: Fix MAP_POPULATE and mlock() for DAX

2015-06-16 Thread Toshi Kani
DAX has the following issues in a shared or read-only private mmap'd file. - mmap(MAP_POPULATE) does not pre-fault - mlock() fails with -ENOMEM DAX uses VM_MIXEDMAP for mmap'd files, which do not have struct page associated with the ranges. Both MAP_POPULATE and mlock() call __mm_populate(),