Re: [patch 1/4] mmu_notifier: Core code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Friday, January 25, 2008 - 1:10 pm

On Fri, 25 Jan 2008, Robin Holt wrote:


Ok. I guess we need to have a __register_mmu_notifier that expects the 
mmap_sem to be held then?


No you cannot do that because there are still callbacks that come later. 
The invalidate_all may lead to invalidate_range() doing nothing for this 
mm. The ops notifier and the freeing of the structure has to wait until 
release().


That does not sync with the current scheme of the invalidate_range() 
hooks. We would have to do a global invalidate early and then place the 
other invalidate_range hooks in such a way that none is called in later in 
process exit handling.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Thu Jan 24, 10:56 pm)
Re: [patch 1/4] mmu_notifier: Core code, Robin Holt, (Fri Jan 25, 11:39 am)
Re: [patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Fri Jan 25, 11:47 am)
Re: [patch 1/4] mmu_notifier: Core code, Robin Holt, (Fri Jan 25, 11:56 am)
Re: [patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Fri Jan 25, 12:03 pm)
Re: [patch 1/4] mmu_notifier: Core code, Robin Holt, (Fri Jan 25, 12:35 pm)
Re: [patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Fri Jan 25, 1:10 pm)
Re: [patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Fri Jan 25, 2:18 pm)
Re: [patch 1/4] mmu_notifier: Core code, Robin Holt, (Sat Jan 26, 4:56 am)
Re: [patch 1/4] mmu_notifier: Core code, Robin Holt, (Sat Jan 26, 5:01 am)
Re: [patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Mon Jan 28, 11:44 am)
Re: [patch 1/4] mmu_notifier: Core code, Christoph Lameter, (Mon Jan 28, 11:51 am)