Re: [PATCH] mm: dont call mmu_notifier_invalidate_page during munlock

2014-05-29 Thread Andrew Morton
On Thu, 29 May 2014 11:19:27 +0400 Konstantin Khlebnikov wrote: > On Thu, May 29, 2014 at 3:09 AM, Andrew Morton > wrote: > > On Wed, 28 May 2014 11:59:55 +0400 Konstantin Khlebnikov > > wrote: > > > >> try_to_munlock() searches other mlocked vmas, it never unmaps pages. > >> There is no reas

Re: [PATCH] mm: dont call mmu_notifier_invalidate_page during munlock

2014-05-29 Thread Konstantin Khlebnikov
On Thu, May 29, 2014 at 3:09 AM, Andrew Morton wrote: > On Wed, 28 May 2014 11:59:55 +0400 Konstantin Khlebnikov > wrote: > >> try_to_munlock() searches other mlocked vmas, it never unmaps pages. >> There is no reason for invalidation because ptes are left unchanged. >> >> ... >> >> --- a/mm/rma

Re: [PATCH] mm: dont call mmu_notifier_invalidate_page during munlock

2014-05-28 Thread Andrew Morton
On Wed, 28 May 2014 11:59:55 +0400 Konstantin Khlebnikov wrote: > try_to_munlock() searches other mlocked vmas, it never unmaps pages. > There is no reason for invalidation because ptes are left unchanged. > > ... > > --- a/mm/rmap.c > +++ b/mm/rmap.c > @@ -1225,7 +1225,7 @@ int try_to_unmap_on

[PATCH] mm: dont call mmu_notifier_invalidate_page during munlock

2014-05-28 Thread Konstantin Khlebnikov
try_to_munlock() searches other mlocked vmas, it never unmaps pages. There is no reason for invalidation because ptes are left unchanged. Signed-off-by: Konstantin Khlebnikov --- mm/rmap.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/rmap.c b/mm/rmap.c index 9c3e773.