Message ID | 20210430195232.30491-25-michel@lespinasse.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=xn6i=J3=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F390C433B4 for <linux-mm@archiver.kernel.org>; Fri, 30 Apr 2021 19:53:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 020526145A for <linux-mm@archiver.kernel.org>; Fri, 30 Apr 2021 19:53:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 020526145A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=lespinasse.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9F08E6B008A; Fri, 30 Apr 2021 15:52:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 030246B009D; Fri, 30 Apr 2021 15:52:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CCEE6B009F; Fri, 30 Apr 2021 15:52:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0126.hostedemail.com [216.40.44.126]) by kanga.kvack.org (Postfix) with ESMTP id 38FEE6B0096 for <linux-mm@kvack.org>; Fri, 30 Apr 2021 15:52:38 -0400 (EDT) Received: from smtpin34.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0191F5003 for <linux-mm@kvack.org>; Fri, 30 Apr 2021 19:52:38 +0000 (UTC) X-FDA: 78090080796.34.BE3C390 Received: from server.lespinasse.org (server.lespinasse.org [63.205.204.226]) by imf26.hostedemail.com (Postfix) with ESMTP id DAAB740002C1 for <linux-mm@kvack.org>; Fri, 30 Apr 2021 19:52:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-ed; t=1619812353; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=V+gT9krnriafAz+sMsWczyeeM3oMiD/qdk5LAIhe9Yg=; b=6H5+DJWUUSgWfXs0KVFOLhcS3YlB+lkUS1LWjaqexBE/zZ535kKaA1aq7BdXF2oe1B1z/ Roh6vuKhxFHU5ZECA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-rsa; t=1619812353; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=V+gT9krnriafAz+sMsWczyeeM3oMiD/qdk5LAIhe9Yg=; b=HZvNX4/POpcRD77pCbupyXrI0ZmJA5Ak9aJV9RKOn3IjsghQfdP4EY8R9oWq8ApOp3Q5h bnXXSYPi7IGlYLGHvGFOBsIlqvIE02S7g1eRgIsTJ4PR+60JlTtpiq1Rs8WECoEq8WWYhGD MVFB1wl4X4qDgBNt4ez4i5eb+sibOS6zzu64RdvYKa/nMa4uJXf7MEsXQf2L2b2KV+pVXlV rUpSob+T26o99noRz5hgTLUi//lhC1ySxclol2A4whI6ZNXh9B9AuafHlB27hv93+jOKr54 FI6DV6eaeyyN03FicM8YcMjSmRe9Wb8uKohTjSYTfEdYxw0urz/cvOE9h7MA== Received: from zeus.lespinasse.org (zeus.lespinasse.org [IPv6:fd00::150:0]) by server.lespinasse.org (Postfix) with ESMTPS id A9075160360; Fri, 30 Apr 2021 12:52:33 -0700 (PDT) Received: by zeus.lespinasse.org (Postfix, from userid 1000) id 9B55D19F523; Fri, 30 Apr 2021 12:52:33 -0700 (PDT) From: Michel Lespinasse <michel@lespinasse.org> To: Linux-MM <linux-mm@kvack.org>, Linux-Kernel <linux-kernel@vger.kernel.org> Cc: Laurent Dufour <ldufour@linux.ibm.com>, Peter Zijlstra <peterz@infradead.org>, Michal Hocko <mhocko@suse.com>, Matthew Wilcox <willy@infradead.org>, Rik van Riel <riel@surriel.com>, Paul McKenney <paulmck@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Suren Baghdasaryan <surenb@google.com>, Joel Fernandes <joelaf@google.com>, Andy Lutomirski <luto@kernel.org>, Michel Lespinasse <michel@lespinasse.org> Subject: [PATCH 24/29] mm: enable speculative fault handling through do_swap_page() Date: Fri, 30 Apr 2021 12:52:25 -0700 Message-Id: <20210430195232.30491-25-michel@lespinasse.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210430195232.30491-1-michel@lespinasse.org> References: <20210430195232.30491-1-michel@lespinasse.org> MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: DAAB740002C1 Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=lespinasse.org header.s=srv-14-ed header.b=6H5+DJWU; dkim=pass header.d=lespinasse.org header.s=srv-14-rsa header.b="HZvNX4/P"; dmarc=pass (policy=none) header.from=lespinasse.org; spf=pass (imf26.hostedemail.com: domain of walken@lespinasse.org designates 63.205.204.226 as permitted sender) smtp.mailfrom=walken@lespinasse.org X-Stat-Signature: infjkswrbnp1sskbkc5qwb77tmpro1m4 Received-SPF: none (lespinasse.org>: No applicable sender policy available) receiver=imf26; identity=mailfrom; envelope-from="<walken@lespinasse.org>"; helo=server.lespinasse.org; client-ip=63.205.204.226 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1619812347-643622 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/29] mm: export dump_mm
|
expand
|
diff --git a/mm/memory.c b/mm/memory.c index a3708b4a616c..cf1a1c0196f0 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3357,11 +3357,6 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) vm_fault_t ret = 0; void *shadow = NULL; - if (vmf->flags & FAULT_FLAG_SPECULATIVE) { - pte_unmap(vmf->pte); - return VM_FAULT_RETRY; - } - #if defined(CONFIG_SMP) || defined(CONFIG_PREEMPTION) if (sizeof(pte_t) > sizeof(unsigned long)) { /*
Change do_swap_page() to allow speculative fault execution to proceed. Signed-off-by: Michel Lespinasse <michel@lespinasse.org> --- mm/memory.c | 5 ----- 1 file changed, 5 deletions(-)