From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612AbdH2TGx (ORCPT ); Tue, 29 Aug 2017 15:06:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58760 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425AbdH2TGt (ORCPT ); Tue, 29 Aug 2017 15:06:49 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A9047267DF Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jglisse@redhat.com Date: Tue, 29 Aug 2017 15:06:45 -0400 From: Jerome Glisse To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Linus Torvalds , Bernhard Held , Adam Borowski , Andrea Arcangeli , Radim =?utf-8?B?S3LEjW3DocWZ?= , Wanpeng Li , Paolo Bonzini , Takashi Iwai , Nadav Amit , Mike Galbraith , "Kirill A . Shutemov" , axie , Andrew Morton Subject: Re: [RFC PATCH] mm/rmap: do not call mmu_notifier_invalidate_page() v3 Message-ID: <20170829190644.GC7546@redhat.com> References: <20170829190526.8767-1-jglisse@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170829190526.8767-1-jglisse@redhat.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 29 Aug 2017 19:06:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 29, 2017 at 03:05:26PM -0400, Jérôme Glisse wrote: > Some MMU notifier need to be able to sleep during callback. This was > broken by c7ab0d2fdc84 ("mm: convert try_to_unmap_one() to use > page_vma_mapped_walk()"). > > This patch restore the sleep ability and properly capture the range of > address that needs to be invalidated. > > Relevent threads: > https://lkml.kernel.org/r/20170809204333.27485-1-jglisse@redhat.com > https://lkml.kernel.org/r/20170804134928.l4klfcnqatni7vsc@black.fi.intel.com > https://marc.info/?l=kvm&m=150327081325160&w=2 Note that i haven't yet tested this patch i just wanted to put it out there. I am gonna run some test over new few days an report. Anyone else is welcome to test it too. Cheers, Jérôme