Re: [PATCH 1/2] MM: Make page tables relocatable -- conditional flush (rc9)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ross Biro
Date: Tuesday, April 15, 2008 - 5:47 am

On Mon, Apr 14, 2008 at 6:57 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:

It's probably best to just wait until the smoke clears on 2.6.26 then.
 I'll add some comments, however I usually get in trouble for adding
too verbose comments, so I've learned to go the other way.  If you
prefer comments though, I'll add them.


Not any more.  It used to require a semaphore, but I can switch it
back to a mutex now.  I can even replace the mutex with an atomic
inc/dec which might be even better since it will work at interrupt
time as well.


If these are the ones I'm thinking of, they are in the fast path on
page faults.  So they should be inlined.  However, I could easily
change it to a small macro or inline function and a regular function
call that would rarely be taken.  This should be a win from the icache
point of view and only a loss in a case we really don't care much
about.


Here I disagree.  The only added function-like #define's I see are
either just aliasing functions, or the case when any function that
does nothing.  I guess the later could be replaced by inlines to avoid
warnings.


Here I'm just being stupid.  There is no reason to have interrupts
disabled at this point.


Laziness.  I didn't feel like figuring this out if the irqsave was
necessary when I started, and forgot to go back and fix it later.
There is no reason.



KM_USER0 is currently correct.  For memory hotplug, we may need to
change this in the future.


     Ross
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] MM: Make page tables relocatable -- condit ..., Ross Biro, (Tue Apr 15, 5:47 am)
Re: [PATCH 1/2] MM: Make page tables relocatable -- condit ..., Christoph Lameter, (Wed Apr 16, 12:22 pm)