login
Header Space

 
 

Re: MAP_POPULATE behavior change?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Kerrisk <mtk.manpages@...>
Cc: lkml <linux-kernel@...>, mk <michael.kerrisk@...>
Date: Monday, May 5, 2008 - 8:54 am

On Mon, May 05, 2008 at 02:42:44PM +0200, Michael Kerrisk wrote:

Oh... yeah it would have. anonymous shared mappings aren't really anonymous
from the POV of most of mm/ :P

 

Ah, my logic wasn't up to scratch there. Yes of course MAP_NONBLOCK is not
a noop, but it makes MAP_POPULATE into a noop. So it still guarantees
that the call will not block and that the kernel will make some kind of
best effort to populate the mapping... for some values of "some kind of"
(ie. "nothing" ;)).

It's done this way of course so it is still safe to call MAP_NONBLOCK if you
don't want to block, and thus everything stays backwards and forward
compatible.

Thanks,
Nick
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: MAP_POPULATE behavior change?, Michael Kerrisk, (Mon Apr 28, 8:07 am)
Re: MAP_POPULATE behavior change?, Nick Piggin, (Mon May 5, 8:23 am)
Re: MAP_POPULATE behavior change?, Michael Kerrisk, (Mon May 5, 8:42 am)
Re: MAP_POPULATE behavior change?, Nick Piggin, (Mon May 5, 8:54 am)
Re: MAP_POPULATE behavior change?, Michael Kerrisk, (Mon May 5, 11:27 am)
speck-geostationary