Re: [PATCH 4/6] mmu_notifier: pass through vma to invalidate_range and invalidate_page

2014-06-30 Thread Linus Torvalds
On Fri, Jun 27, 2014 at 7:00 PM, Jérôme Glisse wrote: > > This needs small refactoring in memory.c to call invalidate_range on > vma boundary the overhead should be low enough. .. and looking at it, doesn't that mean that the whole invalidate call should be moved inside unmap_single_vma() then, i

Re: [PATCH 4/6] mmu_notifier: pass through vma to invalidate_range and invalidate_page

2014-06-30 Thread Jerome Glisse
On Sun, Jun 29, 2014 at 08:29:01PM -0700, John Hubbard wrote: > On Fri, 27 Jun 2014, Jérôme Glisse wrote: > > > From: Jérôme Glisse > > > > New user of the mmu_notifier interface need to lookup vma in order to > > perform the invalidation operation. Instead of redoing a vma lookup > > inside the

Re: [PATCH 4/6] mmu_notifier: pass through vma to invalidate_range and invalidate_page

2014-06-29 Thread John Hubbard
On Fri, 27 Jun 2014, Jérôme Glisse wrote: > From: Jérôme Glisse > > New user of the mmu_notifier interface need to lookup vma in order to > perform the invalidation operation. Instead of redoing a vma lookup > inside the callback just pass through the vma from the call site where > it is already

[PATCH 4/6] mmu_notifier: pass through vma to invalidate_range and invalidate_page

2014-06-27 Thread Jérôme Glisse
From: Jérôme Glisse New user of the mmu_notifier interface need to lookup vma in order to perform the invalidation operation. Instead of redoing a vma lookup inside the callback just pass through the vma from the call site where it is already available. This needs small refactoring in memory.c t