Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp636598pxy; Fri, 30 Apr 2021 12:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3BOJ47FcIxw4e+TYekUI3VFU6lVg/DFvZWEyI7DNF83fo6DDzvNGvVY5ek3on5U6SJ/XM X-Received: by 2002:a63:dc12:: with SMTP id s18mr5380015pgg.141.1619812568054; Fri, 30 Apr 2021 12:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619812568; cv=none; d=google.com; s=arc-20160816; b=e4hw7NtS0XT78k6WGRl9wl/cykip83p860Vtk05aoy1rQQN2j4Q+AAh4CGgnlQGvxh wcFhOJpEFm3yctyNSJ17qA8YLZihP6BpxCrcWfiX5WmPkcWwgA1KENhZx5+I0aZaxlL7 PtD6B9AcbbH+VXX6cF4FbXZBceBwwE3hcxRD004DnrIBMhOLqxhWgbhzoxtyeXeG3Ajf qaZrL5ZqAc/i5DJqcIHiTjI0VfgJ2aOhSstu3CA7Cl9oWnplD89nzJW7Y+//XBAkus3Q rDXVSHAqYjD9y0p6ycu9ZDrhUK2MGYHq/77ij77J/i1GU4YKnG8HIosYxGP9EU/adRac DGww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=V+gT9krnriafAz+sMsWczyeeM3oMiD/qdk5LAIhe9Yg=; b=dQXi4I57y7Exo6Osf3V2RzeoYwl+wb9hJp1GLKcudVbfNBC+iwDrVSaDpNbr0Jqyk5 Wv0JF/QkrEDNAdJMOrat+sC2x8x5sP1wNJ6qFSxb0YfbyI5cLgxB2R10IZpX7pucArJW Z5ReciU1IJScI6wa9KsDeTs/1rkx8y7UjmgvswOL3dIgaHTDEI4jgAmdUfWpWDSjSxkc saqN1miTgH0/Sc9T1ef/xgZmPCSJBKdUIfKZu+XvNAPyObEDVgmW8Rkt+TX8j9xTRA5i EC6CSLjVxkx29sX3GbEML6yHlKkPO5LQGXH/i5ttX+rL4CcxdE0VrjlWPSgiwHRTJYQa RQ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-14-ed header.b=6H5+DJWU; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-14-rsa header.b="HZvNX4/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i65si3123252pfc.227.2021.04.30.12.55.55; Fri, 30 Apr 2021 12:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-14-ed header.b=6H5+DJWU; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-14-rsa header.b="HZvNX4/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbhD3Tyx (ORCPT + 99 others); Fri, 30 Apr 2021 15:54:53 -0400 Received: from server.lespinasse.org ([63.205.204.226]:46307 "EHLO server.lespinasse.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232441AbhD3Txg (ORCPT ); Fri, 30 Apr 2021 15:53:36 -0400 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 To: Linux-MM , Linux-Kernel Cc: Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Paul McKenney , Andrew Morton , Suren Baghdasaryan , Joel Fernandes , Andy Lutomirski , Michel Lespinasse 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change do_swap_page() to allow speculative fault execution to proceed. Signed-off-by: Michel Lespinasse --- mm/memory.c | 5 ----- 1 file changed, 5 deletions(-) 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)) { /* -- 2.20.1