Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast() implementation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Monday, April 12, 2010 - 6:05 pm

On Thu, 2010-04-08 at 21:17 +0200, Peter Zijlstra wrote:

There's a few other places that need a similar fix then. The hash page
code for example. All the C cases should end up calling the
find_linux_pte() helper afaik, so we should be able to stick the lock in
there (and the hugetlbfs variant, find_linux_pte_or_hugepte()).

However, we also have cases of tight asm code walking the page tables,
such as the tlb miss handler on embedded processors. I don't see how I
could do that there. IE. I only have a handful of registers to play
with, no stack, etc...

So we might have to support the interrupt assumption, at least in some
form, with those guys...

Cheers,
Ben. 



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

Messages in current thread:
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Mon Apr 12, 6:05 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Thu Apr 15, 11:51 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Thu Apr 15, 11:54 pm)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Fri Apr 16, 1:29 am)
Re: [PATCH 01/13] powerpc: Add rcu_read_lock() to gup_fast ..., Benjamin Herrenschmidt, (Fri Apr 16, 4:25 pm)