Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1957025AbdDZIcn (ORCPT ); Wed, 26 Apr 2017 04:32:43 -0400 Received: from terminus.zytor.com ([65.50.211.136]:52885 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1953793AbdDZIcc (ORCPT ); Wed, 26 Apr 2017 04:32:32 -0400 Date: Wed, 26 Apr 2017 01:26:29 -0700 From: tip-bot for Andy Lutomirski Message-ID: Cc: jpoimboe@redhat.com, tglx@linutronix.de, mhocko@suse.com, linux-kernel@vger.kernel.org, brgerst@gmail.com, sasha.levin@oracle.com, hpa@zytor.com, dvlasenk@redhat.com, dave.hansen@intel.com, peterz@infradead.org, luto@kernel.org, akpm@linux-foundation.org, mingo@kernel.org, bp@alien8.de, riel@redhat.com, torvalds@linux-foundation.org, namit@vmware.com Reply-To: linux-kernel@vger.kernel.org, brgerst@gmail.com, jpoimboe@redhat.com, tglx@linutronix.de, mhocko@suse.com, akpm@linux-foundation.org, luto@kernel.org, mingo@kernel.org, bp@alien8.de, riel@redhat.com, namit@vmware.com, torvalds@linux-foundation.org, sasha.levin@oracle.com, dvlasenk@redhat.com, hpa@zytor.com, peterz@infradead.org, dave.hansen@intel.com In-Reply-To: <791a644076fc3577ba7f7b7cafd643cc089baa7d.1492844372.git.luto@kernel.org> References: <791a644076fc3577ba7f7b7cafd643cc089baa7d.1492844372.git.luto@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/mm] x86/vm86/32: Switch to flush_tlb_mm_range() in mark_screen_rdonly() Git-Commit-ID: 9ccee2373f0658f234727700e619df097ba57023 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1826 Lines: 49 Commit-ID: 9ccee2373f0658f234727700e619df097ba57023 Gitweb: http://git.kernel.org/tip/9ccee2373f0658f234727700e619df097ba57023 Author: Andy Lutomirski AuthorDate: Sat, 22 Apr 2017 00:01:19 -0700 Committer: Ingo Molnar CommitDate: Wed, 26 Apr 2017 10:02:06 +0200 x86/vm86/32: Switch to flush_tlb_mm_range() in mark_screen_rdonly() mark_screen_rdonly() is the last remaining caller of flush_tlb(). flush_tlb_mm_range() is potentially faster and isn't obsolete. Compile-tested only because I don't know whether software that uses this mechanism even exists. Signed-off-by: Andy Lutomirski Cc: Andrew Morton Cc: Borislav Petkov Cc: Brian Gerst Cc: Dave Hansen Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Michal Hocko Cc: Nadav Amit Cc: Peter Zijlstra Cc: Rik van Riel Cc: Sasha Levin Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/791a644076fc3577ba7f7b7cafd643cc089baa7d.1492844372.git.luto@kernel.org Signed-off-by: Ingo Molnar --- arch/x86/kernel/vm86_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/vm86_32.c b/arch/x86/kernel/vm86_32.c index 62597c3..7924a53 100644 --- a/arch/x86/kernel/vm86_32.c +++ b/arch/x86/kernel/vm86_32.c @@ -197,7 +197,7 @@ static void mark_screen_rdonly(struct mm_struct *mm) pte_unmap_unlock(pte, ptl); out: up_write(&mm->mmap_sem); - flush_tlb(); + flush_tlb_mm_range(mm, 0xA0000, 0xA0000 + 32*PAGE_SIZE, 0UL); }