Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757223AbaGACEN (ORCPT ); Mon, 30 Jun 2014 22:04:13 -0400 Received: from mail-ve0-f174.google.com ([209.85.128.174]:46061 "EHLO mail-ve0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbaGACEM convert rfc822-to-8bit (ORCPT ); Mon, 30 Jun 2014 22:04:12 -0400 MIME-Version: 1.0 In-Reply-To: <1403920822-14488-5-git-send-email-j.glisse@gmail.com> References: <1403920822-14488-1-git-send-email-j.glisse@gmail.com> <1403920822-14488-5-git-send-email-j.glisse@gmail.com> Date: Mon, 30 Jun 2014 19:04:11 -0700 X-Google-Sender-Auth: 9SVeCbbr9vOsvImNi18Y4x7FIEQ Message-ID: Subject: Re: [PATCH 4/6] mmu_notifier: pass through vma to invalidate_range and invalidate_page From: Linus Torvalds 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/