From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [PATCH 4/6] mmu_notifier: pass through vma to invalidate_range and invalidate_page Date: Mon, 30 Jun 2014 19:04:11 -0700 Message-ID: References: <1403920822-14488-1-git-send-email-j.glisse@gmail.com> <1403920822-14488-5-git-send-email-j.glisse@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1403920822-14488-5-git-send-email-j.glisse@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= Cc: Andrew Morton , linux-mm , Linux Kernel Mailing List , Mel Gorman , Peter Anvin , Andrea Arcangeli , Rik van Riel , Johannes Weiner , Mark Hairgrove , Jatin Kumar , Subhash Gutti , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , John Hubbard , Sherry Cheung , Duncan Poole , Oded Gabbay , Alexander Deucher , Andrew Lewycky , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Peter Zijlstra List-Id: linux-mm.kvack.org On Fri, Jun 27, 2014 at 7:00 PM, J=C3=A9r=C3=B4me Glisse wrote: > > This needs small refactoring in memory.c to call invalidate_range on > vma boundary the overhead should be low enough. =2E. and looking at it, doesn't that mean that the whole invalidate cal= l should be moved inside unmap_single_vma() then, instead of being duplicated in all the callers? I really get the feeling that somebody needs to go over this patch-series with a fine comb to fix these kinds of ugly things. Linus