From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f200.google.com (mail-io0-f200.google.com [209.85.223.200]) by kanga.kvack.org (Postfix) with ESMTP id 2F3446B02F3 for ; Tue, 29 Aug 2017 15:09:47 -0400 (EDT) Received: by mail-io0-f200.google.com with SMTP id 81so32152640ioj.11 for ; Tue, 29 Aug 2017 12:09:47 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id m184sor1175910ith.62.2017.08.29.12.09.46 for (Google Transport Security); Tue, 29 Aug 2017 12:09:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170829190526.8767-1-jglisse@redhat.com> References: <20170829190526.8767-1-jglisse@redhat.com> From: Linus Torvalds Date: Tue, 29 Aug 2017 12:09:45 -0700 Message-ID: Subject: Re: [RFC PATCH] mm/rmap: do not call mmu_notifier_invalidate_page() v3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= Cc: Linux Kernel Mailing List , linux-mm , Bernhard Held , Adam Borowski , Andrea Arcangeli , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Wanpeng Li , Paolo Bonzini , Takashi Iwai , Nadav Amit , Mike Galbraith , "Kirill A . Shutemov" , axie , Andrew Morton On Tue, Aug 29, 2017 at 12:05 PM, J=C3=A9r=C3=B4me 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()"). No. No no no. Didn't you learn *anything* from the bug? You cannot replace "mmu_notifier_invalidate_page()" with "mmu_notifier_invalidate_range()". KVM implements mmu_notifier_invalidate_page(). IT DOES NOT IMPLEMENT THAT RANGE CRAP AT ALL. So any approach like this is fundamentally garbage. Really. Stop sending crap. This is exactly tehe same thing that we already reverted because it was broken shit. Why do you re-send it without actually fixing the fundamental problems that were pointed out? Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org